Class BearerTokenErrors

java.lang.Object
com.codename1.backend.security.oauth2.server.resource.BearerTokenErrors

public final class BearerTokenErrors extends Object
The three errors of RFC 6750 3.1.
  • 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.