Class BearerTokenError
- java.lang.Object
-
- org.springframework.security.oauth2.core.OAuth2Error
-
- org.springframework.security.oauth2.server.resource.BearerTokenError
-
- All Implemented Interfaces:
java.io.Serializable
public final class BearerTokenError extends OAuth2Error
A representation of a Bearer Token Error.- Since:
- 5.1
- See Also:
BearerTokenErrorCodes
, RFC 6750 Section 3: The WWW-Authenticate Response Header Field, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BearerTokenError(java.lang.String errorCode, org.springframework.http.HttpStatus httpStatus, java.lang.String description, java.lang.String errorUri)
Create aBearerTokenError
using the provided parametersBearerTokenError(java.lang.String errorCode, org.springframework.http.HttpStatus httpStatus, java.lang.String description, java.lang.String errorUri, java.lang.String scope)
Create aBearerTokenError
using the provided parameters
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.HttpStatus
getHttpStatus()
Return the HTTP status.java.lang.String
getScope()
Return the scope.-
Methods inherited from class org.springframework.security.oauth2.core.OAuth2Error
getDescription, getErrorCode, getUri, toString
-
-
-
-
Constructor Detail
-
BearerTokenError
public BearerTokenError(java.lang.String errorCode, org.springframework.http.HttpStatus httpStatus, java.lang.String description, java.lang.String errorUri)
Create aBearerTokenError
using the provided parameters- Parameters:
errorCode
- the error codehttpStatus
- the HTTP status
-
BearerTokenError
public BearerTokenError(java.lang.String errorCode, org.springframework.http.HttpStatus httpStatus, java.lang.String description, java.lang.String errorUri, java.lang.String scope)
Create aBearerTokenError
using the provided parameters- Parameters:
errorCode
- the error codehttpStatus
- the HTTP statusdescription
- the descriptionerrorUri
- the URIscope
- the scope
-
-