Package net.openid.appauth
Class AuthorizationException.RegistrationRequestErrors
- java.lang.Object
-
- net.openid.appauth.AuthorizationException.RegistrationRequestErrors
-
- Enclosing class:
- AuthorizationException
public static final class AuthorizationException.RegistrationRequestErrors extends Object
Error codes related to failed registration requests.
-
-
Field Summary
Fields Modifier and Type Field Description static AuthorizationExceptionCLIENT_ERRORAn authorization error occurring on the client rather than the server.static AuthorizationExceptionINVALID_CLIENT_METADATAAninvalid_grantOAuth2 error response.static AuthorizationExceptionINVALID_REDIRECT_URIAninvalid_clientOAuth2 error response.static AuthorizationExceptionINVALID_REQUESTAninvalid_requestOAuth2 error response.static AuthorizationExceptionOTHERIndicates an OAuth error as per RFC 6749, but the error code is not known to the AppAuth for Android library.
-
Constructor Summary
Constructors Constructor Description RegistrationRequestErrors()
-
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.
-
INVALID_REDIRECT_URI
public static final AuthorizationException INVALID_REDIRECT_URI
Aninvalid_clientOAuth2 error response.
-
INVALID_CLIENT_METADATA
public static final AuthorizationException INVALID_CLIENT_METADATA
Aninvalid_grantOAuth2 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.errorfield provides the exact error string returned by the server.
-
-
Constructor Detail
-
RegistrationRequestErrors
public RegistrationRequestErrors()
-
-
Method Detail
-
byString
public static AuthorizationException byString(String error)
Returns the matching exception type for the provided OAuth2 error string, orOTHERif unknown.
-
-