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:
java.io.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
public class OAuth20Exception extends OAuthException
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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ACCESS_DENIED
static java.lang.String
INSUFFICIENT_SCOPE
static java.lang.String
INVALID_CLIENT
static java.lang.String
INVALID_GRANT
static java.lang.String
INVALID_REQUEST
static java.lang.String
INVALID_SCOPE
static java.lang.String
INVALID_TOKEN
static java.lang.String
SERVER_ERROR
static java.lang.String
TEMPORARILY_UNAVAILABLE
static java.lang.String
UNAUTHORIZED_CLIENT
static java.lang.String
UNSUPPORED_GRANT_TPE
static java.lang.String
UNSUPPORTED_RESPONSE_TPE
-
Constructor Summary
Constructors Constructor Description OAuth20Exception(java.lang.String error, java.lang.String message, java.lang.Throwable cause)
Creates a OAuth20Exception.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
formatSelf(java.util.Locale locale, java.lang.String encoding)
java.lang.String
getError()
Gets error type for this OAuth exception-
Methods inherited from class com.ibm.oauth.core.api.error.OAuthException
getMsgKey, getObjects
-
-
-
-
Field Detail
-
INVALID_REQUEST
public static final java.lang.String INVALID_REQUEST
- See Also:
- Constant Field Values
-
UNAUTHORIZED_CLIENT
public static final java.lang.String UNAUTHORIZED_CLIENT
- See Also:
- Constant Field Values
-
ACCESS_DENIED
public static final java.lang.String ACCESS_DENIED
- See Also:
- Constant Field Values
-
UNSUPPORTED_RESPONSE_TPE
public static final java.lang.String UNSUPPORTED_RESPONSE_TPE
- See Also:
- Constant Field Values
-
INVALID_SCOPE
public static final java.lang.String INVALID_SCOPE
- See Also:
- Constant Field Values
-
SERVER_ERROR
public static final java.lang.String SERVER_ERROR
- See Also:
- Constant Field Values
-
TEMPORARILY_UNAVAILABLE
public static final java.lang.String TEMPORARILY_UNAVAILABLE
- See Also:
- Constant Field Values
-
INVALID_CLIENT
public static final java.lang.String INVALID_CLIENT
- See Also:
- Constant Field Values
-
INVALID_GRANT
public static final java.lang.String INVALID_GRANT
- See Also:
- Constant Field Values
-
UNSUPPORED_GRANT_TPE
public static final java.lang.String UNSUPPORED_GRANT_TPE
- See Also:
- Constant Field Values
-
INVALID_TOKEN
public static final java.lang.String INVALID_TOKEN
- See Also:
- Constant Field Values
-
INSUFFICIENT_SCOPE
public static final java.lang.String INSUFFICIENT_SCOPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getError
public java.lang.String getError()
Description copied from class:OAuthException
Gets error type for this OAuth exception- Specified by:
getError
in 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
public java.lang.String formatSelf(java.util.Locale locale, java.lang.String encoding)
- Specified by:
formatSelf
in classOAuthException
-
-