public static enum OAuth2Parameters.GrantType extends Enum<OAuth2Parameters.GrantType>
grant_type
used in the access token request.Enum Constant and Description |
---|
AUTHORIZATION_CODE
Used to request an access token in the Authorization Code Grant Flow.
|
CLIENT_CREDENTIALS
Used in Client Credentials Flow.
|
PASSWORD
Used in Resource Owner Password Credential Grant.
|
REFRESH_TOKEN
Used to refresh an access token in the Authorization Code Grant Flow.
|
Modifier and Type | Method and Description |
---|---|
static OAuth2Parameters.GrantType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OAuth2Parameters.GrantType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OAuth2Parameters.GrantType AUTHORIZATION_CODE
public static final OAuth2Parameters.GrantType REFRESH_TOKEN
public static final OAuth2Parameters.GrantType PASSWORD
public static final OAuth2Parameters.GrantType CLIENT_CREDENTIALS
public static final String key
public static OAuth2Parameters.GrantType[] values()
for (OAuth2Parameters.GrantType c : OAuth2Parameters.GrantType.values()) System.out.println(c);
public static OAuth2Parameters.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 © 2007-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.