public enum GrantType extends Enum<GrantType>
OauthClientApplication.grant_types| Modifier and Type | Class and Description |
|---|---|
static class |
GrantType.DeserializerImpl |
static class |
GrantType.SerializerImpl |
| Enum Constant and Description |
|---|
AUTHORIZATION_CODE
This is for a stereo-typical OAuth flow between a web application that users access via a browser.
|
CLIENT_CREDENTIALS
This mode of token issuance is to use the OAuth application client ID and secret directly to
create a token.
|
| Modifier and Type | Method and Description |
|---|---|
static GrantType |
parse(String value)
From the lower/upper case of the grant type value, obtains the enum constant.
|
String |
toLowerCase() |
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 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 nullpublic String toLowerCase()
Copyright © 2011-2015. All Rights Reserved.