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