Class BearerTokenError
java.lang.Object
org.springframework.security.oauth2.core.OAuth2Error
org.springframework.security.oauth2.server.resource.BearerTokenError
- All Implemented Interfaces:
Serializable
A representation of a
Bearer Token
Error.
- Since:
- 5.1
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBearerTokenError(String errorCode, org.springframework.http.HttpStatus httpStatus, @Nullable String description, @Nullable String errorUri) Create aBearerTokenErrorusing the provided parametersBearerTokenError(String errorCode, org.springframework.http.HttpStatus httpStatus, @Nullable String description, @Nullable String errorUri, @Nullable String scope) Create aBearerTokenErrorusing the provided parameters -
Method Summary
Methods inherited from class OAuth2Error
getDescription, getErrorCode, getUri, toString
-
Constructor Details
-
BearerTokenError
-
BearerTokenError
public BearerTokenError(String errorCode, org.springframework.http.HttpStatus httpStatus, @Nullable String description, @Nullable String errorUri, @Nullable String scope) Create aBearerTokenErrorusing the provided parameters- Parameters:
errorCode- the error codehttpStatus- the HTTP statusdescription- the descriptionerrorUri- the URIscope- the scope
-
-
Method Details
-
getHttpStatus
public org.springframework.http.HttpStatus getHttpStatus()Return the HTTP status.- Returns:
- the HTTP status
-
getScope
-