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 SummaryFields Modifier and Type Field Description static java.lang.StringACCESS_DENIEDstatic java.lang.StringINSUFFICIENT_SCOPEstatic java.lang.StringINVALID_CLIENTstatic java.lang.StringINVALID_GRANTstatic java.lang.StringINVALID_REQUESTstatic java.lang.StringINVALID_SCOPEstatic java.lang.StringINVALID_TOKENstatic java.lang.StringSERVER_ERRORstatic java.lang.StringTEMPORARILY_UNAVAILABLEstatic java.lang.StringUNAUTHORIZED_CLIENTstatic java.lang.StringUNSUPPORED_GRANT_TPEstatic java.lang.StringUNSUPPORTED_RESPONSE_TPE
 - 
Constructor SummaryConstructors Constructor Description OAuth20Exception(java.lang.String error, java.lang.String message, java.lang.Throwable cause)Creates a OAuth20Exception.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringformatSelf(java.util.Locale locale, java.lang.String encoding)java.lang.StringgetError()Gets error type for this OAuth exception
 
- 
- 
- 
Field Detail- 
INVALID_REQUESTpublic static final java.lang.String INVALID_REQUEST - See Also:
- Constant Field Values
 
 - 
UNAUTHORIZED_CLIENTpublic static final java.lang.String UNAUTHORIZED_CLIENT - See Also:
- Constant Field Values
 
 - 
ACCESS_DENIEDpublic static final java.lang.String ACCESS_DENIED - See Also:
- Constant Field Values
 
 - 
UNSUPPORTED_RESPONSE_TPEpublic static final java.lang.String UNSUPPORTED_RESPONSE_TPE - See Also:
- Constant Field Values
 
 - 
INVALID_SCOPEpublic static final java.lang.String INVALID_SCOPE - See Also:
- Constant Field Values
 
 - 
SERVER_ERRORpublic static final java.lang.String SERVER_ERROR - See Also:
- Constant Field Values
 
 - 
TEMPORARILY_UNAVAILABLEpublic static final java.lang.String TEMPORARILY_UNAVAILABLE - See Also:
- Constant Field Values
 
 - 
INVALID_CLIENTpublic static final java.lang.String INVALID_CLIENT - See Also:
- Constant Field Values
 
 - 
INVALID_GRANTpublic static final java.lang.String INVALID_GRANT - See Also:
- Constant Field Values
 
 - 
UNSUPPORED_GRANT_TPEpublic static final java.lang.String UNSUPPORED_GRANT_TPE - See Also:
- Constant Field Values
 
 - 
INVALID_TOKENpublic static final java.lang.String INVALID_TOKEN - See Also:
- Constant Field Values
 
 - 
INSUFFICIENT_SCOPEpublic static final java.lang.String INSUFFICIENT_SCOPE - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getErrorpublic java.lang.String getError() Description copied from class:OAuthExceptionGets error type for this OAuth exception- Specified by:
- getErrorin class- OAuthException
- Returns:
- the error response associated with this OAuth 2.0 exception. These errors correspond to the mandated error field in OAuth 2.0 protocol.
 
 - 
formatSelfpublic java.lang.String formatSelf(java.util.Locale locale, java.lang.String encoding)- Specified by:
- formatSelfin class- OAuthException
 
 
- 
 
-