public enum GrantType extends Enum<GrantType>
Enum Constant and Description |
---|
authorization_code
Defined in 4.1 Authorization Code Grant.
|
client_credentials
Defined in 4.4 Client Credentials Grant.
|
password
Defined in 4.3 Resource Owner Password Credentials Grant.
|
refresh_token
Defined in 6 Refreshing an Access Token.
|
Modifier and Type | Method and Description |
---|---|
static GrantType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GrantType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GrantType authorization_code
public static final GrantType client_credentials
public static final GrantType password
public static final GrantType refresh_token
public static GrantType[] values()
for (GrantType c : GrantType.values()) System.out.println(c);
public static GrantType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullCopyright © 2005-2015 Restlet.