Package net.openid.appauth
Class AuthorizationException.TokenRequestErrors
- java.lang.Object
-
- net.openid.appauth.AuthorizationException.TokenRequestErrors
-
- Enclosing class:
- AuthorizationException
public static final class AuthorizationException.TokenRequestErrors extends Object
Error codes related to failed token requests.
-
-
Field Summary
Fields Modifier and Type Field Description static AuthorizationException
CLIENT_ERROR
An authorization error occurring on the client rather than the server.static AuthorizationException
INVALID_CLIENT
Aninvalid_client
OAuth2 error response.static AuthorizationException
INVALID_GRANT
Aninvalid_grant
OAuth2 error response.static AuthorizationException
INVALID_REQUEST
Aninvalid_request
OAuth2 error response.static AuthorizationException
INVALID_SCOPE
Aninvalid_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
Anunauthorized_client
OAuth2 error response.static AuthorizationException
UNSUPPORTED_GRANT_TYPE
Anunsupported_grant_type
OAuth2 error response.
-
Constructor Summary
Constructors Constructor Description TokenRequestErrors()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AuthorizationException
byString(String error)
Returns the matching exception type for the provided OAuth2 error string, orOTHER
if unknown.
-
-
-
Field Detail
-
INVALID_REQUEST
public static final AuthorizationException INVALID_REQUEST
Aninvalid_request
OAuth2 error response.
-
INVALID_CLIENT
public static final AuthorizationException INVALID_CLIENT
Aninvalid_client
OAuth2 error response.
-
INVALID_GRANT
public static final AuthorizationException INVALID_GRANT
Aninvalid_grant
OAuth2 error response.
-
UNAUTHORIZED_CLIENT
public static final AuthorizationException UNAUTHORIZED_CLIENT
Anunauthorized_client
OAuth2 error response.
-
UNSUPPORTED_GRANT_TYPE
public static final AuthorizationException UNSUPPORTED_GRANT_TYPE
Anunsupported_grant_type
OAuth2 error response.
-
INVALID_SCOPE
public static final AuthorizationException INVALID_SCOPE
Aninvalid_scope
OAuth2 error response.
-
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.error
field provides the exact error string returned by the server.
-
-
Constructor Detail
-
TokenRequestErrors
public TokenRequestErrors()
-
-
Method Detail
-
byString
public static AuthorizationException byString(String error)
Returns the matching exception type for the provided OAuth2 error string, orOTHER
if unknown.
-
-