Package org.forgerock.secrets.jwkset
Enum Class JwkKeyFormat
- All Implemented Interfaces:
Serializable
,Comparable<JwkKeyFormat>
,java.lang.constant.Constable
,KeyFormat<JWK>
Exports keys in JSON Web Key (JWK) format.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionA JWK format that only includes the key_ops parameter to express the key's usage.A JWK format that only includes the use parameter to express the key's usage.A JWK format that includes both the use and key_ops parameters to express the key's usage. -
Method Summary
Modifier and TypeMethodDescriptionExports the given crypto key and raw key material.static JwkKeyFormat
Returns the enum constant of this class with the specified name.static JwkKeyFormat[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
USING_USE
A JWK format that only includes the use parameter to express the key's usage. -
USING_KEY_OPS
A JWK format that only includes the key_ops parameter to express the key's usage. -
USING_USE_AND_KEY_OPS
A JWK format that includes both the use and key_ops parameters to express the key's usage.
-
-
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
-
export
Description copied from interface:KeyFormat
Exports the given crypto key and raw key material.
-