Package com.nimbusds.oauth2.sdk
Enum Scope.Value.Requirement
- java.lang.Object
-
- java.lang.Enum<Scope.Value.Requirement>
-
- com.nimbusds.oauth2.sdk.Scope.Value.Requirement
-
- All Implemented Interfaces:
Serializable
,Comparable<Scope.Value.Requirement>
- Enclosing class:
- Scope.Value
public static enum Scope.Value.Requirement extends Enum<Scope.Value.Requirement>
Enumeration of the scope value requirements for application-specific authorisation requests.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Scope.Value.Requirement
valueOf(String name)
Returns the enum constant of this type with the specified name.static Scope.Value.Requirement[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
REQUIRED
public static final Scope.Value.Requirement REQUIRED
The value must be present in theScope
parameter.
-
OPTIONAL
public static final Scope.Value.Requirement OPTIONAL
The value may be optionally included in theScope
parameter.
-
-
Method Detail
-
values
public static Scope.Value.Requirement[] 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 (Scope.Value.Requirement c : Scope.Value.Requirement.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Scope.Value.Requirement 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
-
-