com.kii.sdk.photocolle
Enum AuthenticationException.Reason

java.lang.Object
  extended by java.lang.Enum<AuthenticationException.Reason>
      extended by com.kii.sdk.photocolle.AuthenticationException.Reason
All Implemented Interfaces:
Serializable, Comparable<AuthenticationException.Reason>
Enclosing class:
AuthenticationException

public static enum AuthenticationException.Reason
extends Enum<AuthenticationException.Reason>

Error reason returned from server.


Enum Constant Summary
INVALID_CLIENT
          Client authentication failed (e.g., unknown client, no client authentication included, or unsupported authentication method).
INVALID_GRANT
          The provided authorization grant (e.g., authorization code, resource owner credentials) or refresh token is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client.
INVALID_REQUEST
          The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed.
INVALID_SCOPE
          The requested scope is invalid, unknown, or malformed.
SERVER_ERROR
          The authorization server encountered an unexpected condition that prevented it from fulfilling the request.
TEMPORARILY_UNAVAILABLE
          The authorization server is currently unable to handle the request due to a temporary overloading or maintenance of the server.
UNAUTHORIZED_CLIENT
          The client is not authorized to request an authorization code using this method.
UNSUPPORTED_GRANT_TYPE
          The authorization grant type is not supported by the authorization server.
UNSUPPORTED_RESPONSE_TYPE
          The authorization server does not support requested response type.
 
Method Summary
 String getLabel()
           
static AuthenticationException.Reason valueOf(String name)
          Returns the enum constant of this type with the specified name.
static AuthenticationException.Reason[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, 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 AuthenticationException.Reason INVALID_REQUEST
The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed.


UNSUPPORTED_RESPONSE_TYPE

public static final AuthenticationException.Reason UNSUPPORTED_RESPONSE_TYPE
The authorization server does not support requested response type.


SERVER_ERROR

public static final AuthenticationException.Reason SERVER_ERROR
The authorization server encountered an unexpected condition that prevented it from fulfilling the request.


INVALID_GRANT

public static final AuthenticationException.Reason INVALID_GRANT
The provided authorization grant (e.g., authorization code, resource owner credentials) or refresh token is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client.


INVALID_CLIENT

public static final AuthenticationException.Reason INVALID_CLIENT
Client authentication failed (e.g., unknown client, no client authentication included, or unsupported authentication method).


UNAUTHORIZED_CLIENT

public static final AuthenticationException.Reason UNAUTHORIZED_CLIENT
The client is not authorized to request an authorization code using this method.


UNSUPPORTED_GRANT_TYPE

public static final AuthenticationException.Reason UNSUPPORTED_GRANT_TYPE
The authorization grant type is not supported by the authorization server.


INVALID_SCOPE

public static final AuthenticationException.Reason INVALID_SCOPE
The requested scope is invalid, unknown, or malformed.


TEMPORARILY_UNAVAILABLE

public static final AuthenticationException.Reason TEMPORARILY_UNAVAILABLE
The authorization server is currently unable to handle the request due to a temporary overloading or maintenance of the server.

Method Detail

values

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

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

valueOf

public static AuthenticationException.Reason 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

getLabel

public String getLabel()
Returns:
the label