Class BearerTokenError

java.lang.Object
org.springframework.security.oauth2.core.OAuth2Error
org.springframework.security.oauth2.server.resource.BearerTokenError
All Implemented Interfaces:
Serializable

public final class BearerTokenError extends OAuth2Error
A representation of a Bearer Token Error.
Since:
5.1
See Also:
  • Constructor Details

    • BearerTokenError

      public BearerTokenError(String errorCode, org.springframework.http.HttpStatus httpStatus, String description, String errorUri)
      Create a BearerTokenError using the provided parameters
      Parameters:
      errorCode - the error code
      httpStatus - the HTTP status
    • BearerTokenError

      public BearerTokenError(String errorCode, org.springframework.http.HttpStatus httpStatus, String description, String errorUri, String scope)
      Create a BearerTokenError using the provided parameters
      Parameters:
      errorCode - the error code
      httpStatus - the HTTP status
      description - the description
      errorUri - the URI
      scope - the scope
  • Method Details

    • getHttpStatus

      public org.springframework.http.HttpStatus getHttpStatus()
      Return the HTTP status.
      Returns:
      the HTTP status
    • getScope

      public String getScope()
      Return the scope.
      Returns:
      the scope