Package com.nimbusds.oauth2.sdk
Enum ParameterRequirement
- java.lang.Object
-
- java.lang.Enum<ParameterRequirement>
-
- com.nimbusds.oauth2.sdk.ParameterRequirement
-
- All Implemented Interfaces:
Serializable
,Comparable<ParameterRequirement>
public enum ParameterRequirement extends Enum<ParameterRequirement>
The requirement level for a parameter.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NOT_ALLOWED
The parameter is not allowed.OPTIONAL
The parameter is optional.REQUIRED
The parameter is required.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ParameterRequirement
valueOf(String name)
Returns the enum constant of this type with the specified name.static ParameterRequirement[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
REQUIRED
public static final ParameterRequirement REQUIRED
The parameter is required.
-
OPTIONAL
public static final ParameterRequirement OPTIONAL
The parameter is optional.
-
NOT_ALLOWED
public static final ParameterRequirement NOT_ALLOWED
The parameter is not allowed.
-
-
Method Detail
-
values
public static ParameterRequirement[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ParameterRequirement c : ParameterRequirement.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ParameterRequirement valueOf(String name)
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
-
-