public enum GrantType extends Enum<GrantType>
| Enum Constant and Description |
|---|
AuthorizationCode
Token grant type: 'authorization_code'.
|
ClientCredentials
Token grant type: 'client_credentials'.
|
Password
Token grant type: 'password'.
|
RefreshToken
Token grant type: 'refresh_token'.
|
| Modifier and Type | Method and Description |
|---|---|
static GrantType |
fromString(String value)
Convert a string into an Enum instance, used for jersey deserialization.
|
String |
toString()
Return the string representation of this enum.
|
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 AuthorizationCode
public static final GrantType ClientCredentials
public static final GrantType Password
public static final GrantType RefreshToken
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 static GrantType fromString(String value)
value - The value to interpret.Copyright © 2018 krotscheck.net. All rights reserved.