Class OAuth20Exception
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.ibm.oauth.core.api.error.OAuthException
com.ibm.oauth.core.api.error.oauth20.OAuth20Exception
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
InvalidGrantException,OAuth20AccessDeniedException,OAuth20AuthorizationCodeInvalidClientException,OAuth20BadParameterFormatException,OAuth20DuplicateParameterException,OAuth20InternalException,OAuth20InvalidClientException,OAuth20InvalidClientSecretException,OAuth20InvalidGrantTypeException,OAuth20InvalidRedirectUriException,OAuth20InvalidResponseTypeException,OAuth20InvalidScopeException,OAuth20InvalidTokenException,OAuth20InvalidTokenRequestMethodException,OAuth20MediatorException,OAuth20MismatchedClientAuthenticationException,OAuth20MismatchedRedirectUriException,OAuth20MissingParameterException,OAuth20PublicClientCredentialsException,OAuth20PublicClientForbiddenException,OAuth20RefreshTokenInvalidClientException,OidcServerException
Represents an exception while processing OAuth 2.0 request and response.
This class is the base class for all OAuth 2.0 component exceptions.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionOAuth20Exception(String error, String message, Throwable cause) Creates a OAuth20Exception. -
Method Summary
Methods inherited from class com.ibm.oauth.core.api.error.OAuthException
getMsgKey, getObjectsMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
INVALID_REQUEST
- See Also:
-
UNAUTHORIZED_CLIENT
- See Also:
-
ACCESS_DENIED
- See Also:
-
UNSUPPORTED_RESPONSE_TPE
- See Also:
-
INVALID_SCOPE
- See Also:
-
SERVER_ERROR
- See Also:
-
TEMPORARILY_UNAVAILABLE
- See Also:
-
INVALID_CLIENT
- See Also:
-
INVALID_GRANT
- See Also:
-
UNSUPPORED_GRANT_TPE
- See Also:
-
INVALID_TOKEN
- See Also:
-
INSUFFICIENT_SCOPE
- See Also:
-
-
Constructor Details
-
OAuth20Exception
Creates a OAuth20Exception.- Parameters:
error- A message for the OAuth 2.0 error.message- A message for the general OAuth error.cause- A root exception.
-
-
Method Details
-
getError
Description copied from class:OAuthExceptionGets error type for this OAuth exception- Specified by:
getErrorin classOAuthException- Returns:
- the error response associated with this OAuth 2.0 exception. These errors correspond to the mandated error field in OAuth 2.0 protocol.
-
formatSelf
- Specified by:
formatSelfin classOAuthException
-