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 ErrorObjectACCESS_DENIEDThe resource owner or authorisation server denied the request.static ErrorObjectINVALID_CLIENTClient authentication failed (e.g.static ErrorObjectINVALID_GRANTThe provided authorisation grant (e.g.static ErrorObjectINVALID_REQUESTThe request is missing a required parameter, includes an invalid parameter, or is otherwise malformed.static ErrorObjectINVALID_REQUEST_OBJECTTherequestparameter in theAuthorizationRequestcontains an invalid request object.static ErrorObjectINVALID_REQUEST_URITherequest_uriin theAuthorizationRequestreturns an error or invalid data.static ErrorObjectINVALID_RESOURCEThe specified resource server URI is not valid or accepted by the authorisation server.static ErrorObjectINVALID_SCOPEThe requested scope is invalid, unknown, or malformed.static ErrorObjectREQUEST_NOT_SUPPORTEDTherequestparameter in theAuthorizationRequestis not supported.static ErrorObjectREQUEST_URI_NOT_SUPPORTEDTherequest_uriparameter in theAuthorizationRequestis not supported.static ErrorObjectSERVER_ERRORThe authorisation server encountered an unexpected condition which prevented it from fulfilling the request.static ErrorObjectTEMPORARILY_UNAVAILABLEThe authorisation server is currently unable to handle the request due to a temporary overloading or maintenance of the server.static ErrorObjectUNAUTHORIZED_CLIENTThe client is not authorised to request an authorisation code using this method.static ErrorObjectUNSUPPORTED_GRANT_TYPEThe authorisation grant type is not supported by the authorisation server.static ErrorObjectUNSUPPORTED_RESPONSE_TYPEThe 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_uriin theAuthorizationRequestreturns an error or invalid data.
-
INVALID_REQUEST_OBJECT
public static final ErrorObject INVALID_REQUEST_OBJECT
Therequestparameter in theAuthorizationRequestcontains an invalid request object.
-
REQUEST_URI_NOT_SUPPORTED
public static final ErrorObject REQUEST_URI_NOT_SUPPORTED
Therequest_uriparameter in theAuthorizationRequestis not supported.
-
REQUEST_NOT_SUPPORTED
public static final ErrorObject REQUEST_NOT_SUPPORTED
Therequestparameter in theAuthorizationRequestis not supported.
-
INVALID_RESOURCE
public static final ErrorObject INVALID_RESOURCE
The specified resource server URI is not valid or accepted by the authorisation server.
-
-