|
Restlet Framework 2.2.2 Java Standard Edition |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<GrantType>
org.restlet.ext.oauth.GrantType
public enum GrantType
Supported mechanisms to grant tokens.
Enum Constant Summary | |
---|---|
authorization_code
Defined in 4.1 Authorization Code Grant. |
|
client_credentials
Defined in 4.4 Client Credentials Grant. |
|
password
Defined in 4.3 Resource Owner Password Credentials Grant. |
|
refresh_token
Defined in 6 Refreshing an Access Token. |
Method Summary | |
---|---|
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. |
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 GrantType authorization_code
public static final GrantType password
public static final GrantType client_credentials
public static final GrantType refresh_token
Method Detail |
---|
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 name
NullPointerException
- if the argument is null
|
Restlet Framework 2.2.2 Java Standard Edition |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |