public static final class AuthorizationException.TokenRequestErrors
extends java.lang.Object
Error codes related to failed token requests.
| Modifier and Type | Field and Description |
|---|---|
static AuthorizationException |
CLIENT_ERROR
An authorization error occurring on the client rather than the server.
|
static AuthorizationException |
INVALID_CLIENT
An
invalid_client OAuth2 error response. |
static AuthorizationException |
INVALID_GRANT
An
invalid_grant OAuth2 error response. |
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 |
UNAUTHORIZED_CLIENT
An
unauthorized_client OAuth2 error response. |
static AuthorizationException |
UNSUPPORTED_GRANT_TYPE
An
unsupported_grant_type OAuth2 error response. |
| Constructor and Description |
|---|
TokenRequestErrors() |
| Modifier and Type | Method and Description |
|---|---|
static AuthorizationException |
byString(java.lang.String error)
Returns the matching exception type for the provided OAuth2 error string, or
OTHER if unknown. |
public static final AuthorizationException INVALID_REQUEST
An invalid_request OAuth2 error response.
public static final AuthorizationException INVALID_CLIENT
An invalid_client OAuth2 error response.
public static final AuthorizationException INVALID_GRANT
An invalid_grant OAuth2 error response.
public static final AuthorizationException UNAUTHORIZED_CLIENT
An unauthorized_client OAuth2 error response.
public static final AuthorizationException UNSUPPORTED_GRANT_TYPE
An unsupported_grant_type OAuth2 error response.
public static final AuthorizationException INVALID_SCOPE
An invalid_scope OAuth2 error response.
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.
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.error field provides the exact error string returned by
the server.
public static AuthorizationException byString(java.lang.String error)
Returns the matching exception type for the provided OAuth2 error string, or
OTHER if unknown.