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:
- java.io.Serializable
 
 public class OAuth20InvalidTokenException extends OAuth20Exception Represents an invalid token exception in an OAuth request.- See Also:
- Serialized Form
 
- 
- 
Field Summary- 
Fields inherited from class com.ibm.oauth.core.api.error.oauth20.OAuth20ExceptionACCESS_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 SummaryConstructors Constructor Description OAuth20InvalidTokenException(java.lang.String key, java.lang.String tokenType, java.lang.String tokenSubType, boolean isTokenRequest)Creates a OAuth20InvalidTokenException.OAuth20InvalidTokenException(java.lang.String msgKey, java.lang.String key, java.lang.String tokenType, java.lang.String tokenSubType, boolean isTokenRequest)
 - 
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.StringgetKey()java.lang.StringgetTokenSubType()java.lang.StringgetTokenType()- 
Methods inherited from class com.ibm.oauth.core.api.error.oauth20.OAuth20ExceptiongetError
 
- 
 
- 
- 
- 
Constructor Detail- 
OAuth20InvalidTokenExceptionpublic OAuth20InvalidTokenException(java.lang.String key, java.lang.String tokenType, java.lang.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.
 
 - 
OAuth20InvalidTokenExceptionpublic OAuth20InvalidTokenException(java.lang.String msgKey, java.lang.String key, java.lang.String tokenType, java.lang.String tokenSubType, boolean isTokenRequest)
 
- 
 - 
Method Detail- 
formatSelfpublic java.lang.String formatSelf(java.util.Locale locale, java.lang.String encoding)- Overrides:
- formatSelfin class- OAuth20Exception
 
 - 
getKeypublic java.lang.String getKey() - Returns:
- the key
 
 - 
getTokenTypepublic java.lang.String getTokenType() - Returns:
- the token type.
 
 - 
getTokenSubTypepublic java.lang.String getTokenSubType() - Returns:
- token sub-type.
 
 
- 
 
-