com.nimbusds.oauth2.sdk
Enum Scope.Value.Requirement

java.lang.Object
  extended by java.lang.Enum<Scope.Value.Requirement>
      extended by 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.


Enum Constant Summary
OPTIONAL
          The value may be optionally included in the Scope parameter.
REQUIRED
          The value must be present in the Scope parameter.
 
Method Summary
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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

REQUIRED

public static final Scope.Value.Requirement REQUIRED
The value must be present in the Scope parameter.


OPTIONAL

public static final Scope.Value.Requirement OPTIONAL
The value may be optionally included in the Scope 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 name
NullPointerException - if the argument is null


Copyright © 2013 NimbusDS. All Rights Reserved.