Class BearerTokenError

java.lang.Object
com.codename1.backend.security.oauth2.core.OAuth2Error
com.codename1.backend.security.oauth2.server.resource.BearerTokenError
All Implemented Interfaces:
Serializable

public final class BearerTokenError extends OAuth2Error
An error a request with a bearer token is answered with (RFC 6750 3.1): the code, the status it is sent under, and the scope it would have needed.
See Also:
  • Constructor Details

    • BearerTokenError

      public BearerTokenError(String errorCode, int httpStatus, String description, String errorUri)
    • BearerTokenError

      public BearerTokenError(String errorCode, int httpStatus, String description, String errorUri, String scope)
  • Method Details

    • getHttpStatus

      public int getHttpStatus()
    • getScope

      public String getScope()
      The scope the request needed, or null.