Package net.openid.appauth
Class AuthorizationException.AuthorizationRequestErrors
- java.lang.Object
-
- net.openid.appauth.AuthorizationException.AuthorizationRequestErrors
-
- Enclosing class:
- AuthorizationException
public static final class AuthorizationException.AuthorizationRequestErrors extends Object
Error codes related to failed authorization requests.- See Also:
“The OAuth 2.0 Authorization Framework (RFC 6749), Section 4.1.2.1 https://tools.ietf.org/html/rfc6749#section-4.1.2.1”
-
-
Field Summary
Fields Modifier and Type Field Description static AuthorizationExceptionACCESS_DENIEDAnaccess_deniedOAuth2 error response.static AuthorizationExceptionCLIENT_ERRORAn authorization error occurring on the client rather than the server.static AuthorizationExceptionINVALID_REQUESTAninvalid_requestOAuth2 error response.static AuthorizationExceptionINVALID_SCOPEAninvalid_scopeOAuth2 error response.static AuthorizationExceptionOTHERIndicates an OAuth error as per RFC 6749, but the error code is not known to the AppAuth for Android library.static AuthorizationExceptionSERVER_ERRORAnserver_errorOAuth2 error response, equivalent to an HTTP 500 error code, but sent via redirect.static AuthorizationExceptionSTATE_MISMATCHIndicates that the response state param did not match the request state param, resulting in the response being discarded.static AuthorizationExceptionTEMPORARILY_UNAVAILABLEAtemporarily_unavailableOAuth2 error response, equivalent to an HTTP 503 error code, but sent via redirect.static AuthorizationExceptionUNAUTHORIZED_CLIENTAnunauthorized_clientOAuth2 error response.static AuthorizationExceptionUNSUPPORTED_RESPONSE_TYPEAnunsupported_response_typeOAuth2 error response.
-
Constructor Summary
Constructors Constructor Description AuthorizationRequestErrors()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AuthorizationExceptionbyString(String error)Returns the matching exception type for the provided OAuth2 error string, orOTHERif unknown.
-
-
-
Field Detail
-
INVALID_REQUEST
public static final AuthorizationException INVALID_REQUEST
Aninvalid_requestOAuth2 error response.
-
UNAUTHORIZED_CLIENT
public static final AuthorizationException UNAUTHORIZED_CLIENT
Anunauthorized_clientOAuth2 error response.
-
ACCESS_DENIED
public static final AuthorizationException ACCESS_DENIED
Anaccess_deniedOAuth2 error response.
-
UNSUPPORTED_RESPONSE_TYPE
public static final AuthorizationException UNSUPPORTED_RESPONSE_TYPE
Anunsupported_response_typeOAuth2 error response.
-
INVALID_SCOPE
public static final AuthorizationException INVALID_SCOPE
Aninvalid_scopeOAuth2 error response.
-
SERVER_ERROR
public static final AuthorizationException SERVER_ERROR
Anserver_errorOAuth2 error response, equivalent to an HTTP 500 error code, but sent via redirect.
-
TEMPORARILY_UNAVAILABLE
public static final AuthorizationException TEMPORARILY_UNAVAILABLE
Atemporarily_unavailableOAuth2 error response, equivalent to an HTTP 503 error code, but sent via redirect.
-
CLIENT_ERROR
public static final AuthorizationException CLIENT_ERROR
An authorization error occurring on the client rather than the server.For example, due to client misconfiguration. This error should be treated as unrecoverable.
-
OTHER
public static final AuthorizationException OTHER
Indicates an OAuth error as per RFC 6749, but the error code is not known to the AppAuth for Android library.It could be a custom error or code, or one from an OAuth extension. The
AuthorizationException.errorfield provides the exact error string returned by the server.
-
STATE_MISMATCH
public static final AuthorizationException STATE_MISMATCH
Indicates that the response state param did not match the request state param, resulting in the response being discarded.
-
-
Constructor Detail
-
AuthorizationRequestErrors
public AuthorizationRequestErrors()
-
-
Method Detail
-
byString
@NonNull public static AuthorizationException byString(String error)
Returns the matching exception type for the provided OAuth2 error string, orOTHERif unknown.
-
-