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:
java.io.Serializable
public class InvalidBearerTokenException extends OAuth2AuthenticationException
AnOAuth2AuthenticationException
that indicates an invalid bearer token.- Since:
- 5.3
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InvalidBearerTokenException(java.lang.String description)
Construct an instance ofInvalidBearerTokenException
given the provided description.InvalidBearerTokenException(java.lang.String description, java.lang.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
-
-
-
-
Constructor Detail
-
InvalidBearerTokenException
public InvalidBearerTokenException(java.lang.String description)
Construct an instance ofInvalidBearerTokenException
given the provided description. The description will be wrapped into anOAuth2Error
instance as theerror_description
.- Parameters:
description
- the description
-
InvalidBearerTokenException
public InvalidBearerTokenException(java.lang.String description, java.lang.Throwable cause)
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
-
-