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
An
OAuth2AuthenticationException that indicates an invalid bearer token.- Since:
- 5.3
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInvalidBearerTokenException(String description) Construct an instance ofInvalidBearerTokenExceptiongiven the provided description.InvalidBearerTokenException(String description, Throwable cause) Construct an instance ofInvalidBearerTokenExceptiongiven the provided description and cause The description will be wrapped into anOAuth2Errorinstance as theerror_description. -
Method Summary
Methods inherited from class OAuth2AuthenticationException
getErrorMethods inherited from class AuthenticationException
getAuthenticationRequest, setAuthenticationRequestMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidBearerTokenException
Construct an instance ofInvalidBearerTokenExceptiongiven the provided description. The description will be wrapped into anOAuth2Errorinstance as theerror_description.- Parameters:
description- the description
-
InvalidBearerTokenException
Construct an instance ofInvalidBearerTokenExceptiongiven the provided description and cause The description will be wrapped into anOAuth2Errorinstance as theerror_description.- Parameters:
description- the descriptioncause- the causing exception
-