public enum GrantType extends Enum<GrantType>
| Enum Constant and Description |
|---|
AUTHORIZATION_CODE
AUTHORIZATION_CODE denotes the server-side authorization flow, and is associated
with the response_type=code parameter value
|
IMPLICIT_GRANT
IMPLICIT_GRANT denotes the client-side authorization flow and is associated with
the response_type=token parameter value
|
| 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 IMPLICIT_GRANT
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 null