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
ConstructorDescriptionInvalidBearerTokenException
(String description) Construct an instance ofInvalidBearerTokenException
given the provided description.InvalidBearerTokenException
(String description, Throwable cause) Construct an instance ofInvalidBearerTokenException
given the provided description and cause The description will be wrapped into anOAuth2Error
instance as theerror_description
. -
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
-
Constructor Details
-
InvalidBearerTokenException
Construct an instance ofInvalidBearerTokenException
given the provided description. The description will be wrapped into anOAuth2Error
instance as theerror_description
.- Parameters:
description
- the description
-
InvalidBearerTokenException
Construct an instance ofInvalidBearerTokenException
given the provided description and cause The description will be wrapped into anOAuth2Error
instance as theerror_description
.- Parameters:
description
- the descriptioncause
- the causing exception
-