public enum ErrorCode extends Enum<ErrorCode>
error from OAuth 2.0 endpoints.
Some error codes are not used by Authlete. For example, because
Authlete supports the request parameter and the request_uri parameter, request_not_supported and request_uri_not_supported are not used.
| Enum Constant and Description |
|---|
access_denied
The resource owner or authorization server denied the
request.
|
account_selection_required
The End-User is REQUIRED to select a session at the
Authorization Server.
|
consent_required
The Authorization Server requires End-User consent.
|
insufficient_scope
The request requires higher privileges than provided by the
access token.
|
interaction_required
The Authorization Server requires End-User interaction of
some form to proceed.
|
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_request_object
The
request parameter contains an invalid Request Object. |
invalid_request_uri
The
request_uri in the Authorization Request
returns an error or contains invalid data. |
invalid_scope
The requested scope is invalid, unknown, or malformed.
|
invalid_token
The access token provided is expired, revoked, malformed, or
invalid for other reasons.
|
login_required
The Authorization Server requires End-User authentication.
|
registration_not_supported
The OP does not support use of the
registration
parameter defined in Section 7.2.1. |
request_not_supported
The OP does not support use of the
request parameter
defined in Section 6. |
request_uri_not_supported
The OP does not support use of the
request_uri parameter
defined in Section 6. |
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 or an access token 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 obtaining an
authorization code or an access token using this method.
|
| Modifier and Type | Method and Description |
|---|---|
static ErrorCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ErrorCode access_denied
public static final ErrorCode account_selection_required
prompt
parameter value in the Authentication Request is
none, but the Authentication Request cannot be
completed without displaying a user interface to prompt
for a session to use.public static final ErrorCode consent_required
prompt
parameter value in the Authentication Request is
none, but the Authentication Request cannot
be completed without displaying a user interface for
End-User consent.public static final ErrorCode insufficient_scope
public static final ErrorCode interaction_required
prompt parameter value in the Authentication Request
is none, but the Authentication Request cannot be
completed without displaying a user interface for End-User
interaction.public static final ErrorCode invalid_client
public static final ErrorCode invalid_grant
public static final ErrorCode invalid_request
public static final ErrorCode invalid_request_uri
request_uri in the Authorization Request
returns an error or contains invalid data.public static final ErrorCode invalid_request_object
request parameter contains an invalid Request Object.public static final ErrorCode invalid_scope
public static final ErrorCode invalid_token
public static final ErrorCode login_required
prompt parameter
value in the Authentication Request is none, but the
Authentication Request cannot be completed without displaying
a user interface for End-User authentication.public static final ErrorCode registration_not_supported
registration
parameter defined in Section 7.2.1.public static final ErrorCode request_not_supported
request parameter
defined in Section 6.public static final ErrorCode request_uri_not_supported
request_uri parameter
defined in Section 6.public static final ErrorCode server_error
public static final ErrorCode temporarily_unavailable
public static final ErrorCode unauthorized_client
public static final ErrorCode unsupported_grant_type
public static final ErrorCode unsupported_response_type
public static ErrorCode[] values()
for (ErrorCode c : ErrorCode.values()) System.out.println(c);
public static ErrorCode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2017. All rights reserved.