Package org.forgerock.am.oauth2
Enum AccessTokenRequest.GrantType
- java.lang.Object
-
- java.lang.Enum<AccessTokenRequest.GrantType>
-
- org.forgerock.am.oauth2.AccessTokenRequest.GrantType
-
- All Implemented Interfaces:
Serializable
,Comparable<AccessTokenRequest.GrantType>
- Enclosing class:
- AccessTokenRequest
public static enum AccessTokenRequest.GrantType extends Enum<AccessTokenRequest.GrantType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLIENT_CREDENTIALS
Client Credentials Grant Type.IDM_DELEGATION
IDM Delegation Grant Type.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AccessTokenRequest.GrantType
valueOf(String name)
Returns the enum constant of this type with the specified name.static AccessTokenRequest.GrantType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CLIENT_CREDENTIALS
public static final AccessTokenRequest.GrantType CLIENT_CREDENTIALS
Client Credentials Grant Type.
-
IDM_DELEGATION
public static final AccessTokenRequest.GrantType IDM_DELEGATION
IDM Delegation Grant Type.
-
-
Method Detail
-
values
public static AccessTokenRequest.GrantType[] 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 (AccessTokenRequest.GrantType c : AccessTokenRequest.GrantType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AccessTokenRequest.GrantType 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
-
-