Class InvalidBearerTokenException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.security.core.AuthenticationException
org.springframework.security.oauth2.core.OAuth2AuthenticationException
org.springframework.security.oauth2.server.resource.InvalidBearerTokenException
All Implemented Interfaces:
Serializable

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

    • InvalidBearerTokenException

      public InvalidBearerTokenException(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(String description, 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