Package io.jans.as.model.jwk
Enum Use
- All Implemented Interfaces:
Serializable
,Comparable<Use>
,java.lang.constant.Constable
- Version:
- September 30, 2021
- Author:
- Javier Rojas Blum
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUse this constant when the key is being used for encryption.Use this constant when the key is being used for signature. -
Method Summary
Modifier and TypeMethodDescriptionstatic Use
fromString
(String param) Returns the correspondingUse
for a parameter use of the JWK endpoint.toString()
Returns a string representation of the object.static Use
Returns the enum constant of this type with the specified name.static Use[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SIGNATURE
Use this constant when the key is being used for signature. -
ENCRYPTION
Use this constant when the key is being used for encryption.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
getParamName
-
fromString
Returns the correspondingUse
for a parameter use of the JWK endpoint.- Parameters:
param
- The use parameter.- Returns:
- The corresponding use if found, otherwise
null
.
-
toString
Returns a string representation of the object. In this case the parameter name.
-