com.google.api.client.auth.oauth2.draft10
Enum AccessTokenRequest.GrantType
java.lang.Object
java.lang.Enum<AccessTokenRequest.GrantType>
com.google.api.client.auth.oauth2.draft10.AccessTokenRequest.GrantType
- All Implemented Interfaces:
- Serializable, Comparable<AccessTokenRequest.GrantType>
- Enclosing class:
- AccessTokenRequest
public static enum AccessTokenRequest.GrantType
- extends Enum<AccessTokenRequest.GrantType>
Access grant type.
AUTHORIZATION_CODE
public static final AccessTokenRequest.GrantType AUTHORIZATION_CODE
PASSWORD
public static final AccessTokenRequest.GrantType PASSWORD
ASSERTION
public static final AccessTokenRequest.GrantType ASSERTION
REFRESH_TOKEN
public static final AccessTokenRequest.GrantType REFRESH_TOKEN
NONE
public static final AccessTokenRequest.GrantType NONE
values
public static AccessTokenRequest.GrantType[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (AccessTokenRequest.GrantType c : AccessTokenRequest.GrantType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static AccessTokenRequest.GrantType valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
Copyright © 2010-2011 Google. All Rights Reserved.