Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.
public final class BearerTokenErrors
- Object
- BearerTokenErrors
The three errors of RFC 6750 3.1.
Methods
public static BearerTokenError invalidRequest(String message) | 400: the request is malformed – two tokens, or a header that is not one. |
public static BearerTokenError invalidToken(String message) | 401: the token is expired, malformed, or does not verify. |
public static BearerTokenError insufficientScope(String message, String scope) | 403: the token is good and does not grant what the request needs. |
Inherited methods
Method details
invalidRequest
public static BearerTokenError invalidRequest(String message)400: the request is malformed – two tokens, or a header that is not one.
invalidToken
public static BearerTokenError invalidToken(String message)401: the token is expired, malformed, or does not verify.
insufficientScope
public static BearerTokenError insufficientScope(String message, String scope)403: the token is good and does not grant what the request needs.