Enum Class KeyLifecycleCause
java.lang.Object
java.lang.Enum<KeyLifecycleCause>
co.ankatech.keymanagement.client.keymanagement.model.KeyLifecycleCause
- All Implemented Interfaces:
Serializable,Comparable<KeyLifecycleCause>,Constable
Why a key left its operative state. Recorded on suspension and on revocation, and read by the platform's lifecycle rule to decide whether historical DECRYPT, VERIFY and the REENCRYPT / RESIGN source legs remain available on that key. SECURITY_COMPROMISE stops them, and it alone also stops ENCRYPT, SIGN and the REENCRYPT / RESIGN target legs regardless of the lifecycle policy. The platform refuses every cryptographic operation with a key revoked or suspended for SECURITY_COMPROMISE, including DECRYPT and VERIFY. NIST SP 800-57 Pt 1 Rev 5 §7.5 forbids applying protection with a compromised key and permits processing already-protected information with a compromised symmetric key, or with the public key of a compromised key pair, only under highly controlled conditions; for symmetric decryption and signature verification the platform's refusal is therefore stricter than NIST. The other four do not stop historical decrypt/verify and do not narrow a write (the tenant's lifecycle policy still applies). The cause is required — there is no default.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic KeyLifecycleCausegetValue()toString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) static KeyLifecycleCauseReturns the enum constant of this class with the specified name.static KeyLifecycleCause[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
-
Enum Constant Details
-
SECURITY_COMPROMISE
-
ALGORITHM_DEPRECATED
-
ADMINISTRATIVE
-
POLICY_VIOLATION
-
REGULATORY_REQUIREMENT
-
UNKNOWN_DEFAULT_OPEN_API
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
-
toString
- Overrides:
toStringin classEnum<KeyLifecycleCause>
-
fromValue
-
validateJsonElement
- Throws:
IOException
-