Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.

public final class BearerTokenError

  1. Object
  2. OAuth2Error
  3. 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

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

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.