public enum AuthorizationGrantType extends java.lang.Enum<AuthorizationGrantType>
The OAuth 2.0 Authorization Framework defines four standard grant types: authorization code, implicit, resource owner password credentials, and client credentials. It also provides an extensibility mechanism for defining additional grant types.
NOTE: "authorization code" is currently the only supported grant type.
Enum Constant and Description |
---|
AUTHORIZATION_CODE |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
value() |
static AuthorizationGrantType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AuthorizationGrantType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AuthorizationGrantType AUTHORIZATION_CODE
public static AuthorizationGrantType[] values()
for (AuthorizationGrantType c : AuthorizationGrantType.values()) System.out.println(c);
public static AuthorizationGrantType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String value()