Class InvalidBearerTokenException

  • All Implemented Interfaces:
    java.io.Serializable

    public class InvalidBearerTokenException
    extends org.springframework.security.oauth2.core.OAuth2AuthenticationException
    An OAuth2AuthenticationException that indicates an invalid bearer token.
    Since:
    5.3
    See Also:
    Serialized Form
    • Method Summary

      • Methods inherited from class org.springframework.security.oauth2.core.OAuth2AuthenticationException

        getError
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • InvalidBearerTokenException

        public InvalidBearerTokenException​(java.lang.String description)
        Construct an instance of InvalidBearerTokenException given the provided description. The description will be wrapped into an OAuth2Error instance as the error_description.
        Parameters:
        description - the description
      • InvalidBearerTokenException

        public InvalidBearerTokenException​(java.lang.String description,
                                           java.lang.Throwable cause)
        Construct an instance of InvalidBearerTokenException given the provided description and cause The description will be wrapped into an OAuth2Error instance as the error_description.
        Parameters:
        description - the description
        cause - the causing exception