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 StringACCESS_DENIED_CODETheACCESS_DENIEDerror code string.static ErrorObjectINVALID_CLIENTClient authentication failed (e.g.static StringINVALID_CLIENT_CODETheINVALID_CLIENTerror code string.static ErrorObjectINVALID_DPOP_PROOFThe DPoP proof received by the authorisation server is invalid.static StringINVALID_DPOP_PROOF_CODETheUSE_DPOP_NONCEerror code string.static ErrorObjectINVALID_GRANTThe provided authorisation grant (e.g.static StringINVALID_GRANT_CODETheINVALID_GRANTerror code string.static ErrorObjectINVALID_REQUESTThe request is missing a required parameter, includes an invalid parameter, or is otherwise malformed.static StringINVALID_REQUEST_CODETheINVALID_REQUESTerror code string.static ErrorObjectINVALID_REQUEST_OBJECTTherequestparameter in theAuthorizationRequestcontains an invalid request object.static StringINVALID_REQUEST_OBJECT_CODETheINVALID_REQUEST_OBJECTerror code string.static ErrorObjectINVALID_REQUEST_URITherequest_uriin theAuthorizationRequestreturns an error or invalid data.static StringINVALID_REQUEST_URI_CODETheINVALID_REQUEST_URIerror code string.static ErrorObjectINVALID_RESOURCEDeprecated.static StringINVALID_RESOURCE_CODEDeprecated.static ErrorObjectINVALID_SCOPEThe requested scope is invalid, unknown, or malformed.static StringINVALID_SCOPE_CODETheINVALID_SCOPEerror code string.static ErrorObjectINVALID_TARGETThe specified resource server URI is not valid or accepted by the authorisation server.static StringINVALID_TARGET_CODETheINVALID_RESOURCEerror code string.static ErrorObjectMISSING_TRUST_ANCHORNo trusted anchor could be found to process an OpenID Connect Federation 1.0 authorisation request using automatic client registration.static StringMISSING_TRUST_ANCHOR_CODETheMISSING_TRUST_ANCHORerror code string.static ErrorObjectOVERBROAD_SCOPEThe scope of the request is considered overbroad by the authorisation server.static StringOVERBROAD_SCOPE_CODETheOVERBROAD_SCOPEerror code string.static ErrorObjectREQUEST_NOT_SUPPORTEDTherequestparameter in theAuthorizationRequestis not supported.static StringREQUEST_NOT_SUPPORTED_CODETheREQUEST_NOT_SUPPORTEDerror code string.static ErrorObjectREQUEST_URI_NOT_SUPPORTEDTherequest_uriparameter in theAuthorizationRequestis not supported.static StringREQUEST_URI_NOT_SUPPORTED_CODETheREQUEST_URI_NOT_SUPPORTEDerror code string.static ErrorObjectSERVER_ERRORThe authorisation server encountered an unexpected condition which prevented it from fulfilling the request.static StringSERVER_ERROR_CODETheSERVER_ERRORerror code string.static ErrorObjectTEMPORARILY_UNAVAILABLEThe authorisation server is currently unable to handle the request due to a temporary overloading or maintenance of the server.static StringTEMPORARILY_UNAVAILABLE_CODETheTEMPORARILY_UNAVAILABLEerror code string.static ErrorObjectUNAUTHORIZED_CLIENTThe client is not authorised to request an authorisation code using this method.static StringUNAUTHORIZED_CLIENT_CODETheUNAUTHORIZED_CLIENTerror code string.static ErrorObjectUNSUPPORTED_GRANT_TYPEThe authorisation grant type is not supported by the authorisation server.static StringUNSUPPORTED_GRANT_TYPE_CODETheUNSUPPORTED_GRANT_TYPEerror code string.static ErrorObjectUNSUPPORTED_RESPONSE_TYPEThe authorisation server does not support obtaining an authorisation code using this method.static StringUNSUPPORTED_RESPONSE_TYPE_CODETheUNSUPPORTED_RESPONSE_TYPEerror code string.static ErrorObjectUSE_DPOP_NONCEUse of DPoP nonce required.static StringUSE_DPOP_NONCE_CODETheUSE_DPOP_NONCEerror code string.static ErrorObjectVALIDATION_FAILEDThe trust chain validation for an OpenID Connect Federation 1.0 authorisation request using automatic client registration failed.static StringVALIDATION_FAILED_CODETheVALIDATION_FAILEDerror code string.
-
-
-
Field Detail
-
INVALID_REQUEST_CODE
public static final String INVALID_REQUEST_CODE
TheINVALID_REQUESTerror code string.- See Also:
- Constant Field Values
-
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_CODE
public static final String UNAUTHORIZED_CLIENT_CODE
TheUNAUTHORIZED_CLIENTerror code string.- See Also:
- Constant Field Values
-
UNAUTHORIZED_CLIENT
public static final ErrorObject UNAUTHORIZED_CLIENT
The client is not authorised to request an authorisation code using this method.
-
ACCESS_DENIED_CODE
public static final String ACCESS_DENIED_CODE
TheACCESS_DENIEDerror code string.- See Also:
- Constant Field Values
-
ACCESS_DENIED
public static final ErrorObject ACCESS_DENIED
The resource owner or authorisation server denied the request.
-
UNSUPPORTED_RESPONSE_TYPE_CODE
public static final String UNSUPPORTED_RESPONSE_TYPE_CODE
TheUNSUPPORTED_RESPONSE_TYPEerror code string.- See Also:
- Constant Field Values
-
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_CODE
public static final String INVALID_SCOPE_CODE
TheINVALID_SCOPEerror code string.- See Also:
- Constant Field Values
-
INVALID_SCOPE
public static final ErrorObject INVALID_SCOPE
The requested scope is invalid, unknown, or malformed.
-
SERVER_ERROR_CODE
public static final String SERVER_ERROR_CODE
TheSERVER_ERRORerror code string.- See Also:
- Constant Field Values
-
SERVER_ERROR
public static final ErrorObject SERVER_ERROR
The authorisation server encountered an unexpected condition which prevented it from fulfilling the request.
-
TEMPORARILY_UNAVAILABLE_CODE
public static final String TEMPORARILY_UNAVAILABLE_CODE
TheTEMPORARILY_UNAVAILABLEerror code string.- See Also:
- Constant Field Values
-
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_CODE
public static final String INVALID_CLIENT_CODE
TheINVALID_CLIENTerror code string.- See Also:
- Constant Field Values
-
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_CODE
public static final String INVALID_GRANT_CODE
TheINVALID_GRANTerror code string.- See Also:
- Constant Field Values
-
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_CODE
public static final String UNSUPPORTED_GRANT_TYPE_CODE
TheUNSUPPORTED_GRANT_TYPEerror code string.- See Also:
- Constant Field Values
-
UNSUPPORTED_GRANT_TYPE
public static final ErrorObject UNSUPPORTED_GRANT_TYPE
The authorisation grant type is not supported by the authorisation server.
-
INVALID_REQUEST_URI_CODE
public static final String INVALID_REQUEST_URI_CODE
TheINVALID_REQUEST_URIerror code string.- See Also:
- Constant Field Values
-
INVALID_REQUEST_URI
public static final ErrorObject INVALID_REQUEST_URI
Therequest_uriin theAuthorizationRequestreturns an error or invalid data.
-
INVALID_REQUEST_OBJECT_CODE
public static final String INVALID_REQUEST_OBJECT_CODE
TheINVALID_REQUEST_OBJECTerror code string.- See Also:
- Constant Field Values
-
INVALID_REQUEST_OBJECT
public static final ErrorObject INVALID_REQUEST_OBJECT
Therequestparameter in theAuthorizationRequestcontains an invalid request object.
-
REQUEST_URI_NOT_SUPPORTED_CODE
public static final String REQUEST_URI_NOT_SUPPORTED_CODE
TheREQUEST_URI_NOT_SUPPORTEDerror code string.- See Also:
- Constant Field Values
-
REQUEST_URI_NOT_SUPPORTED
public static final ErrorObject REQUEST_URI_NOT_SUPPORTED
Therequest_uriparameter in theAuthorizationRequestis not supported.
-
REQUEST_NOT_SUPPORTED_CODE
public static final String REQUEST_NOT_SUPPORTED_CODE
TheREQUEST_NOT_SUPPORTEDerror code string.- See Also:
- Constant Field Values
-
REQUEST_NOT_SUPPORTED
public static final ErrorObject REQUEST_NOT_SUPPORTED
Therequestparameter in theAuthorizationRequestis not supported.
-
INVALID_RESOURCE_CODE
@Deprecated public static final String INVALID_RESOURCE_CODE
Deprecated.TheINVALID_RESOURCEerror code string.- See Also:
INVALID_TARGET_CODE, Constant Field Values
-
INVALID_RESOURCE
@Deprecated public static final ErrorObject INVALID_RESOURCE
Deprecated.The specified resource server URI is not valid or accepted by the authorisation server. @see #INVALID_TARGET
-
INVALID_TARGET_CODE
public static final String INVALID_TARGET_CODE
TheINVALID_RESOURCEerror code string.- See Also:
- Constant Field Values
-
INVALID_TARGET
public static final ErrorObject INVALID_TARGET
The specified resource server URI is not valid or accepted by the authorisation server.
-
OVERBROAD_SCOPE_CODE
public static final String OVERBROAD_SCOPE_CODE
TheOVERBROAD_SCOPEerror code string.- See Also:
- Constant Field Values
-
OVERBROAD_SCOPE
public static final ErrorObject OVERBROAD_SCOPE
The scope of the request is considered overbroad by the authorisation server.
-
INVALID_DPOP_PROOF_CODE
public static final String INVALID_DPOP_PROOF_CODE
TheUSE_DPOP_NONCEerror code string.- See Also:
- Constant Field Values
-
INVALID_DPOP_PROOF
public static final ErrorObject INVALID_DPOP_PROOF
The DPoP proof received by the authorisation server is invalid.
-
USE_DPOP_NONCE_CODE
public static final String USE_DPOP_NONCE_CODE
TheUSE_DPOP_NONCEerror code string.- See Also:
- Constant Field Values
-
USE_DPOP_NONCE
public static final ErrorObject USE_DPOP_NONCE
Use of DPoP nonce required.
-
MISSING_TRUST_ANCHOR_CODE
public static final String MISSING_TRUST_ANCHOR_CODE
TheMISSING_TRUST_ANCHORerror code string.- See Also:
- Constant Field Values
-
MISSING_TRUST_ANCHOR
public static final ErrorObject MISSING_TRUST_ANCHOR
No trusted anchor could be found to process an OpenID Connect Federation 1.0 authorisation request using automatic client registration.
-
VALIDATION_FAILED_CODE
public static final String VALIDATION_FAILED_CODE
TheVALIDATION_FAILEDerror code string.- See Also:
- Constant Field Values
-
VALIDATION_FAILED
public static final ErrorObject VALIDATION_FAILED
The trust chain validation for an OpenID Connect Federation 1.0 authorisation request using automatic client registration failed.
-
-