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

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

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

Error codes listed in Error Codes.


Enum Constant Summary
ACCESS_DENIED
          The end-user or authorization server denied the request.
INVALID_CLIENT
          The client identifier provided is invalid.
INVALID_REQUEST
          The request is missing a required parameter, includes an unsupported parameter or parameter value, or is otherwise malformed.
INVALID_SCOPE
          The requested scope is invalid, unknown, or malformed.
REDIRECT_URI_MISMATCH
          The redirection URI provided does not match a pre-registered value.
UNAUTHORIZED_CLIENT
          The client is not authorized to use the requested response type.
UNSUPPORTED_RESPONSE_TYPE
          The requested response type is not supported by the authorization server.
 
Method Summary
static AuthorizationResponse.KnownError valueOf(String name)
          Returns the enum constant of this type with the specified name.
static AuthorizationResponse.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 AuthorizationResponse.KnownError INVALID_REQUEST
The request is missing a required parameter, includes an unsupported parameter or parameter value, or is otherwise malformed.


INVALID_CLIENT

public static final AuthorizationResponse.KnownError INVALID_CLIENT
The client identifier provided is invalid.


UNAUTHORIZED_CLIENT

public static final AuthorizationResponse.KnownError UNAUTHORIZED_CLIENT
The client is not authorized to use the requested response type.


REDIRECT_URI_MISMATCH

public static final AuthorizationResponse.KnownError REDIRECT_URI_MISMATCH
The redirection URI provided does not match a pre-registered value.


ACCESS_DENIED

public static final AuthorizationResponse.KnownError ACCESS_DENIED
The end-user or authorization server denied the request.


UNSUPPORTED_RESPONSE_TYPE

public static final AuthorizationResponse.KnownError UNSUPPORTED_RESPONSE_TYPE
The requested response type is not supported by the authorization server.


INVALID_SCOPE

public static final AuthorizationResponse.KnownError INVALID_SCOPE
The requested scope is invalid, unknown, or malformed.

Method Detail

values

public static AuthorizationResponse.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 (AuthorizationResponse.KnownError c : AuthorizationResponse.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 AuthorizationResponse.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.