public enum OAuth20Error extends Enum<OAuth20Error>
error
from OAuth 2.0 endpoints.Enum Constant and Description |
---|
access_denied
The resource owner or authorization server denied the
request.
|
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 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 OAuth20Error |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OAuth20Error[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OAuth20Error access_denied
public static final OAuth20Error invalid_client
public static final OAuth20Error invalid_grant
public static final OAuth20Error invalid_request
public static final OAuth20Error invalid_scope
public static final OAuth20Error server_error
public static final OAuth20Error temporarily_unavailable
public static final OAuth20Error unauthorized_client
public static final OAuth20Error unsupported_grant_type
public static final OAuth20Error unsupported_response_type
public static OAuth20Error[] values()
for (OAuth20Error c : OAuth20Error.values()) System.out.println(c);
public static OAuth20Error 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 © 2016. All rights reserved.