Package org.forgerock.json.jose.jwk
Enum Class KeyOperation
- All Implemented Interfaces:
Serializable
,Comparable<KeyOperation>
,Constable
Represents the Possible key operations values.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionUse Key to decrypt content and validate decryption, if applicable.Use Key to derive bits not to be used as a key.Use Key to derive key.Use Key to encrypt content.Use Key to compute digital signature or MAC.Use Key to decrypt key and validate decryption, if applicable.Use Key to verify digital signature or MAC.Use Key to encrypt key. -
Method Summary
Modifier and TypeMethodDescriptionstatic KeyOperation
getKeyOperations
(String name) Get the KeyOperation.getName()
Get the Value of the KeyOperation.toString()
Prints the KeyOperation value.static KeyOperation
Returns the enum constant of this class with the specified name.static KeyOperation[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SIGN
Use Key to compute digital signature or MAC. -
VERIFY
Use Key to verify digital signature or MAC. -
ENCRYPT
Use Key to encrypt content. -
DECRYPT
Use Key to decrypt content and validate decryption, if applicable. -
WRAP_KEY
Use Key to encrypt key. -
UNWRAP_KEY
Use Key to decrypt key and validate decryption, if applicable. -
DERIVE_KEY
Use Key to derive key. -
DERIVE_BITS
Use Key to derive bits not to be used as a key.
-
-
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
-
getName
Get the Value of the KeyOperation.- Returns:
- the KeyOperation value.
-
getKeyOperations
Get the KeyOperation. The key operation values are case-sensitive strings.- Parameters:
name
- the string representing the KeyOperation to get- Returns:
- a KeyOperation, or null if KeyOperation is null or empty
-
toString
Prints the KeyOperation value.- Overrides:
toString
in classEnum<KeyOperation>
- Returns:
- the KeyOperation in lowercase
-