Class BearerTokenErrors
java.lang.Object
com.codename1.backend.security.oauth2.server.resource.BearerTokenErrors
The three errors of RFC 6750 3.1.
-
Method Summary
Modifier and TypeMethodDescriptionstatic BearerTokenErrorinsufficientScope(String message, String scope) 403: the token is good and does not grant what the request needs.static BearerTokenErrorinvalidRequest(String message) 400: the request is malformed -- two tokens, or a header that is not one.static BearerTokenErrorinvalidToken(String message) 401: the token is expired, malformed, or does not verify.
-
Method Details
-
invalidRequest
400: the request is malformed -- two tokens, or a header that is not one. -
invalidToken
401: the token is expired, malformed, or does not verify. -
insufficientScope
403: the token is good and does not grant what the request needs.
-