com.ibm.oauth.core.api.error.oauth20

Class 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
    • Constructor Detail

      • OAuth20InvalidTokenException

        public 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.
      • OAuth20InvalidTokenException

        public OAuth20InvalidTokenException(java.lang.String msgKey,
                                    java.lang.String key,
                                    java.lang.String tokenType,
                                    java.lang.String tokenSubType,
                                    boolean isTokenRequest)
    • Method Detail

      • formatSelf

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

        public java.lang.String getKey()
        Returns:
        the key
      • getTokenType

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

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