public static final class AuthorizationException.AuthorizationRequestErrors extends Object
Modifier and Type | Field and Description |
---|---|
static AuthorizationException |
ACCESS_DENIED
An
access_denied OAuth2 error response. |
static AuthorizationException |
CLIENT_ERROR
An authorization error occurring on the client rather than the server.
|
static AuthorizationException |
INVALID_REQUEST
An
invalid_request OAuth2 error response. |
static AuthorizationException |
INVALID_SCOPE
An
invalid_scope OAuth2 error response. |
static AuthorizationException |
OTHER
Indicates an OAuth error as per RFC 6749, but the error code is not known to the
AppAuth for Android library.
|
static AuthorizationException |
SERVER_ERROR
An
server_error OAuth2 error response, equivalent to an HTTP 500 error code, but
sent via redirect. |
static AuthorizationException |
TEMPORARILY_UNAVAILABLE
A
temporarily_unavailable OAuth2 error response, equivalent to an HTTP 503 error
code, but sent via redirect. |
static AuthorizationException |
UNAUTHORIZED_CLIENT
An
unauthorized_client OAuth2 error response. |
static AuthorizationException |
UNSUPPORTED_RESPONSE_TYPE
An
unsupported_response_type OAuth2 error response. |
Constructor and Description |
---|
AuthorizationRequestErrors() |
Modifier and Type | Method and Description |
---|---|
static AuthorizationException |
byString(String error)
Returns the matching exception type for the provided OAuth2 error string, or
OTHER if unknown. |
public static final AuthorizationException INVALID_REQUEST
invalid_request
OAuth2 error response.public static final AuthorizationException UNAUTHORIZED_CLIENT
unauthorized_client
OAuth2 error response.public static final AuthorizationException ACCESS_DENIED
access_denied
OAuth2 error response.public static final AuthorizationException UNSUPPORTED_RESPONSE_TYPE
unsupported_response_type
OAuth2 error response.public static final AuthorizationException INVALID_SCOPE
invalid_scope
OAuth2 error response.public static final AuthorizationException SERVER_ERROR
server_error
OAuth2 error response, equivalent to an HTTP 500 error code, but
sent via redirect.public static final AuthorizationException TEMPORARILY_UNAVAILABLE
temporarily_unavailable
OAuth2 error response, equivalent to an HTTP 503 error
code, but sent via redirect.public static final AuthorizationException CLIENT_ERROR
public static final AuthorizationException OTHER
AuthorizationException.error
field provides the exact error string returned by
the server.@NonNull public static AuthorizationException byString(String error)
OTHER
if unknown.