Class OAuth20InvalidTokenException

All Implemented Interfaces:
Serializable

public class OAuth20InvalidTokenException extends OAuth20Exception
Represents an invalid token exception in an OAuth request.
See Also:
  • 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

      public OAuth20InvalidTokenException(String msgKey, String key, String tokenType, String tokenSubType, boolean isTokenRequest)
  • Method Details

    • formatSelf

      public String formatSelf(Locale locale, String encoding)
      Overrides:
      formatSelf in class OAuth20Exception
    • getKey

      public String getKey()
      Returns:
      the key
    • getTokenType

      public String getTokenType()
      Returns:
      the token type.
    • getTokenSubType

      public String getTokenSubType()
      Returns:
      token sub-type.