Package org.forgerock.json.jose.jwk
Enum Class KeyType
- All Implemented Interfaces:
Serializable
,Comparable<KeyType>
,Constable
Enum representing the possible KeyTypes.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic KeyType
getKeyType
(String keyType) Get the KeyType given a string.The minimum set of fields that are required for a JWK of this type.toString()
Gets the value of the KeyType.value()
Get the value of the KeyType.static KeyType
Returns the enum constant of this class with the specified name.static KeyType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RSA
RSA key. -
EC
Elliptical Curve Key. -
OCT
Octet Key. -
OKP
Octet key-pair.
-
-
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
-
value
Get the value of the KeyType.- Returns:
- the value of the KeyType
-
getRequiredFields
The minimum set of fields that are required for a JWK of this type.- Returns:
- the minimum set of fields for this type of JWK.
-
getKeyType
Get the KeyType given a string.- Parameters:
keyType
- string representing the KeyType- Returns:
- a KeyType or null if given null KeyType
-
toString
Gets the value of the KeyType.
-