Package com.nimbusds.jose
Enum Class Requirement
- All Implemented Interfaces:
Serializable
,Comparable<Requirement>
,java.lang.constant.Constable
Enumeration of JOSE algorithm implementation requirements. Refers to the
requirement levels defined in RFC 2119.
- Version:
- 2012-09-17
- Author:
- Vladimir Dzhuvinov
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe implementation of the algorithm is optional.The implementation of the algorithm is recommended.The implementation of the algorithm is required. -
Method Summary
Modifier and TypeMethodDescriptionstatic Requirement
Returns the enum constant of this class with the specified name.static Requirement[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
REQUIRED
The implementation of the algorithm is required. -
RECOMMENDED
The implementation of the algorithm is recommended. -
OPTIONAL
The implementation of the algorithm is optional.
-
-
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
-