- All Implemented Interfaces:
Serializable
,Comparable<WebKey.Operation>
,Constable
- Enclosing interface:
WebKey
Enumerates key operations.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDecrypt content and validate decryption.Derive bits not to be used as a key.Derive key.Encrypt content.Compute digital signature or MAC.Decrypt key and validate decryption.Verify digital signature or MAC.Encrypt key. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic WebKey.Operation
Gets an item value equivalent to the JWK key_ops attribute.static WebKey.Operation
Returns the enum constant of this class with the specified name.static WebKey.Operation[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SIGN
Compute digital signature or MAC. -
VERIFY
Verify digital signature or MAC. -
ENCRYPT
Encrypt content. -
DECRYPT
Decrypt content and validate decryption. -
WRAP
Encrypt key. -
UNWRAP
Decrypt key and validate decryption. -
DERIVE_KEY
Derive key. -
DERIVE_BITS
Derive bits not to be used as a key.
-
-
Field Details
-
keyOp
JSON key_ops item value
-
-
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
-
from
Gets an item value equivalent to the JWK key_ops attribute.- Parameters:
keyOp
- key_ops item value- Returns:
WebKey.Operation
-