com.google.api.client.auth.oauth2
Enum AccessTokenErrorResponse.KnownError

java.lang.Object
  extended by java.lang.Enum<AccessTokenErrorResponse.KnownError>
      extended by com.google.api.client.auth.oauth2.AccessTokenErrorResponse.KnownError
All Implemented Interfaces:
Serializable, Comparable<AccessTokenErrorResponse.KnownError>
Enclosing class:
AccessTokenErrorResponse

public static enum AccessTokenErrorResponse.KnownError
extends Enum<AccessTokenErrorResponse.KnownError>

Error codes listed in Error Codes.


Enum Constant Summary
INVALID_CLIENT
          The client identifier provided is invalid, the client failed to authenticate, the client did not include its credentials, provided multiple client credentials, or used unsupported credentials type.
INVALID_GRANT
          The provided access grant is invalid, expired, or revoked (e.g.
INVALID_REQUEST
          The request is missing a required parameter, includes an unsupported parameter or parameter value, repeats a parameter, includes multiple credentials, utilizes more than one mechanism for authenticating the client, or is otherwise malformed.
INVALID_SCOPE
          The requested scope is invalid, unknown, malformed, or exceeds the previously granted scope.
UNAUTHORIZED_CLIENT
          The authenticated client is not authorized to use the access grant type provided.
UNSUPPORTED_GRANT_TYPE
          The access grant included - its type or another attribute - is not supported by the authorization server.
 
Method Summary
static AccessTokenErrorResponse.KnownError valueOf(String name)
          Returns the enum constant of this type with the specified name.
static AccessTokenErrorResponse.KnownError[] 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

INVALID_REQUEST

public static final AccessTokenErrorResponse.KnownError INVALID_REQUEST
The request is missing a required parameter, includes an unsupported parameter or parameter value, repeats a parameter, includes multiple credentials, utilizes more than one mechanism for authenticating the client, or is otherwise malformed.


INVALID_CLIENT

public static final AccessTokenErrorResponse.KnownError INVALID_CLIENT
The client identifier provided is invalid, the client failed to authenticate, the client did not include its credentials, provided multiple client credentials, or used unsupported credentials type.


UNAUTHORIZED_CLIENT

public static final AccessTokenErrorResponse.KnownError UNAUTHORIZED_CLIENT
The authenticated client is not authorized to use the access grant type provided.


INVALID_GRANT

public static final AccessTokenErrorResponse.KnownError INVALID_GRANT
The provided access grant is invalid, expired, or revoked (e.g. invalid assertion, expired authorization token, bad end-user password credentials, or mismatching authorization code and redirection URI).


UNSUPPORTED_GRANT_TYPE

public static final AccessTokenErrorResponse.KnownError UNSUPPORTED_GRANT_TYPE
The access grant included - its type or another attribute - is not supported by the authorization server.


INVALID_SCOPE

public static final AccessTokenErrorResponse.KnownError INVALID_SCOPE
The requested scope is invalid, unknown, malformed, or exceeds the previously granted scope.

Method Detail

values

public static AccessTokenErrorResponse.KnownError[] 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 (AccessTokenErrorResponse.KnownError c : AccessTokenErrorResponse.KnownError.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static AccessTokenErrorResponse.KnownError 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.