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.
-
Constructor Summary
ConstructorsConstructorDescriptionBearerTokenError(String errorCode, org.springframework.http.HttpStatus httpStatus, String description, String errorUri) Create aBearerTokenErrorusing the provided parametersBearerTokenError(String errorCode, org.springframework.http.HttpStatus httpStatus, String description, String errorUri, String scope) Create aBearerTokenErrorusing the provided parameters -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.HttpStatusReturn the HTTP status.getScope()Return the scope.Methods inherited from class org.springframework.security.oauth2.core.OAuth2Error
getDescription, getErrorCode, getUri, toString
-
Constructor Details
-
BearerTokenError
public BearerTokenError(String errorCode, org.springframework.http.HttpStatus httpStatus, String description, String errorUri) Create aBearerTokenErrorusing the provided parameters- Parameters:
errorCode- the error codehttpStatus- the HTTP status
-
BearerTokenError
public BearerTokenError(String errorCode, org.springframework.http.HttpStatus httpStatus, String description, String errorUri, 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
Return the scope.- Returns:
- the scope
-