public enum OAuth20GrantTypes extends java.lang.Enum<OAuth20GrantTypes>
| Enum Constant and Description |
|---|
AUTHORIZATION_CODE
For the authorization grant type.
|
CLIENT_CREDENTIALS
For the client credentials grant type.
|
PASSWORD
For the resource owner password grant type.
|
REFRESH_TOKEN
For the refresh token grant type.
|
| Modifier and Type | Method and Description |
|---|---|
static OAuth20GrantTypes |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static OAuth20GrantTypes[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OAuth20GrantTypes AUTHORIZATION_CODE
public static final OAuth20GrantTypes PASSWORD
public static final OAuth20GrantTypes CLIENT_CREDENTIALS
public static final OAuth20GrantTypes REFRESH_TOKEN
public static OAuth20GrantTypes[] values()
for (OAuth20GrantTypes c : OAuth20GrantTypes.values()) System.out.println(c);
public static OAuth20GrantTypes 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 null