com.google.api.client.auth.oauth2.draft10
Enum AccessTokenRequest.GrantType

java.lang.Object
  extended by java.lang.Enum<AccessTokenRequest.GrantType>
      extended by 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.


Enum Constant Summary
ASSERTION
           
AUTHORIZATION_CODE
           
NONE
           
PASSWORD
           
REFRESH_TOKEN
           
 
Method Summary
static AccessTokenRequest.GrantType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static AccessTokenRequest.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

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
Method Detail

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.