public static enum OAuth2Types.GrantType extends Enum<OAuth2Types.GrantType>
| Enum Constant and Description |
|---|
AUTHORIZATION_CODE |
CLIENT_CREDENTIALS |
CUSTOM |
PASSWORD |
REFRESH_TOKEN |
| Modifier and Type | Method and Description |
|---|---|
String |
toString() |
static OAuth2Types.GrantType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OAuth2Types.GrantType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OAuth2Types.GrantType REFRESH_TOKEN
public static final OAuth2Types.GrantType AUTHORIZATION_CODE
public static final OAuth2Types.GrantType PASSWORD
public static final OAuth2Types.GrantType CLIENT_CREDENTIALS
public static final OAuth2Types.GrantType CUSTOM
public static OAuth2Types.GrantType[] values()
for (OAuth2Types.GrantType c : OAuth2Types.GrantType.values()) System.out.println(c);
public static OAuth2Types.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 toString()
toString in class Enum<OAuth2Types.GrantType>Copyright © 2007-2014 The Apache Software Foundation. All Rights Reserved.