Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.
public final class BearerTokenError
- Object
- OAuth2Error
- BearerTokenError
ImplementsSerializable
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.
Constructors
Methods
public int getHttpStatus() | |
public String getScope() | The scope the request needed, or null. |
Inherited methods
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.