Package com.nimbusds.oauth2.sdk
Class OAuth2Error
- java.lang.Object
-
- com.nimbusds.oauth2.sdk.OAuth2Error
-
public final class OAuth2Error extends Object
Standard OAuth 2.0 authorisation and token endpoint errors.The set HTTP status code is ignored for authorisation errors passed by HTTP redirection. Errors that are only used by at the authorisation endpoint are supplied with a matching HTTP status code in case they are used in a different context.
-
-
Field Summary
Fields Modifier and Type Field Description static ErrorObject
ACCESS_DENIED
The resource owner or authorisation server denied the request.static ErrorObject
INVALID_CLIENT
Client authentication failed (e.g.static ErrorObject
INVALID_GRANT
The provided authorisation grant (e.g.static ErrorObject
INVALID_REQUEST
The request is missing a required parameter, includes an invalid parameter, or is otherwise malformed.static ErrorObject
INVALID_REQUEST_OBJECT
Therequest
parameter in theAuthorizationRequest
contains an invalid request object.static ErrorObject
INVALID_REQUEST_URI
Therequest_uri
in theAuthorizationRequest
returns an error or invalid data.static ErrorObject
INVALID_RESOURCE
The specified resource server URI is not valid or accepted by the authorisation server.static ErrorObject
INVALID_SCOPE
The requested scope is invalid, unknown, or malformed.static ErrorObject
REQUEST_NOT_SUPPORTED
Therequest
parameter in theAuthorizationRequest
is not supported.static ErrorObject
REQUEST_URI_NOT_SUPPORTED
Therequest_uri
parameter in theAuthorizationRequest
is not supported.static ErrorObject
SERVER_ERROR
The authorisation server encountered an unexpected condition which prevented it from fulfilling the request.static ErrorObject
TEMPORARILY_UNAVAILABLE
The authorisation server is currently unable to handle the request due to a temporary overloading or maintenance of the server.static ErrorObject
UNAUTHORIZED_CLIENT
The client is not authorised to request an authorisation code using this method.static ErrorObject
UNSUPPORTED_GRANT_TYPE
The authorisation grant type is not supported by the authorisation server.static ErrorObject
UNSUPPORTED_RESPONSE_TYPE
The authorisation server does not support obtaining an authorisation code using this method.
-
-
-
Field Detail
-
INVALID_REQUEST
public static final ErrorObject INVALID_REQUEST
The request is missing a required parameter, includes an invalid parameter, or is otherwise malformed.
-
UNAUTHORIZED_CLIENT
public static final ErrorObject UNAUTHORIZED_CLIENT
The client is not authorised to request an authorisation code using this method.
-
ACCESS_DENIED
public static final ErrorObject ACCESS_DENIED
The resource owner or authorisation server denied the request.
-
UNSUPPORTED_RESPONSE_TYPE
public static final ErrorObject UNSUPPORTED_RESPONSE_TYPE
The authorisation server does not support obtaining an authorisation code using this method.
-
INVALID_SCOPE
public static final ErrorObject INVALID_SCOPE
The requested scope is invalid, unknown, or malformed.
-
SERVER_ERROR
public static final ErrorObject SERVER_ERROR
The authorisation server encountered an unexpected condition which prevented it from fulfilling the request.
-
TEMPORARILY_UNAVAILABLE
public static final ErrorObject TEMPORARILY_UNAVAILABLE
The authorisation server is currently unable to handle the request due to a temporary overloading or maintenance of the server.
-
INVALID_CLIENT
public static final ErrorObject INVALID_CLIENT
Client authentication failed (e.g. unknown client, no client authentication included, or unsupported authentication method).
-
INVALID_GRANT
public static final ErrorObject INVALID_GRANT
The provided authorisation grant (e.g. authorisation 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.
-
UNSUPPORTED_GRANT_TYPE
public static final ErrorObject UNSUPPORTED_GRANT_TYPE
The authorisation grant type is not supported by the authorisation server.
-
INVALID_REQUEST_URI
public static final ErrorObject INVALID_REQUEST_URI
Therequest_uri
in theAuthorizationRequest
returns an error or invalid data.
-
INVALID_REQUEST_OBJECT
public static final ErrorObject INVALID_REQUEST_OBJECT
Therequest
parameter in theAuthorizationRequest
contains an invalid request object.
-
REQUEST_URI_NOT_SUPPORTED
public static final ErrorObject REQUEST_URI_NOT_SUPPORTED
Therequest_uri
parameter in theAuthorizationRequest
is not supported.
-
REQUEST_NOT_SUPPORTED
public static final ErrorObject REQUEST_NOT_SUPPORTED
Therequest
parameter in theAuthorizationRequest
is not supported.
-
INVALID_RESOURCE
public static final ErrorObject INVALID_RESOURCE
The specified resource server URI is not valid or accepted by the authorisation server.
-
-