Class OAuth20InvalidTokenException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.ibm.oauth.core.api.error.OAuthException
com.ibm.oauth.core.api.error.oauth20.OAuth20Exception
com.ibm.oauth.core.api.error.oauth20.OAuth20InvalidTokenException
- All Implemented Interfaces:
Serializable
Represents an invalid token exception in an OAuth request.
- See Also:
-
Field Summary
Fields inherited from class com.ibm.oauth.core.api.error.oauth20.OAuth20Exception
ACCESS_DENIED, INSUFFICIENT_SCOPE, INVALID_CLIENT, INVALID_GRANT, INVALID_REQUEST, INVALID_SCOPE, INVALID_TOKEN, SERVER_ERROR, TEMPORARILY_UNAVAILABLE, UNAUTHORIZED_CLIENT, UNSUPPORED_GRANT_TPE, UNSUPPORTED_RESPONSE_TPE
-
Constructor Summary
ConstructorDescriptionOAuth20InvalidTokenException
(String key, String tokenType, String tokenSubType, boolean isTokenRequest) Creates a OAuth20InvalidTokenException.OAuth20InvalidTokenException
(String msgKey, String key, String tokenType, String tokenSubType, boolean isTokenRequest) -
Method Summary
Methods inherited from class com.ibm.oauth.core.api.error.oauth20.OAuth20Exception
getError
Methods inherited from class com.ibm.oauth.core.api.error.OAuthException
getMsgKey, getObjects
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
OAuth20InvalidTokenException
public OAuth20InvalidTokenException(String key, String tokenType, String tokenSubType, boolean isTokenRequest) Creates a OAuth20InvalidTokenException.- Parameters:
key
- the token cache lookup key which is a unique identifier for a token.tokenType
- the token type for an OAuth request.tokenSubType
- the token sub-type for an OAuth request.isTokenRequest
- a boolean to indicate if client is making a token request.
-
OAuth20InvalidTokenException
-
-
Method Details
-
formatSelf
- Overrides:
formatSelf
in classOAuth20Exception
-
getKey
- Returns:
- the key
-
getTokenType
- Returns:
- the token type.
-
getTokenSubType
- Returns:
- token sub-type.
-