|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<OAuth2Parameters.GrantType>
org.glassfish.jersey.client.oauth2.OAuth2Parameters.GrantType
public static enum OAuth2Parameters.GrantType
Parameter grant_type used in the access token request.
| Enum Constant Summary | |
|---|---|
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. |
|
| Field Summary | |
|---|---|
static String |
key
Parameter key name. |
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
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
| Field Detail |
|---|
public static final String key
| Method Detail |
|---|
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 name
NullPointerException - if the argument is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||