Class ClientRegistrationException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.codename1.backend.security.oauth2.server.authorization.ClientRegistrationException

public class ClientRegistrationException extends RuntimeException
A registration refused by a ClientRegistrationPolicy, answered 400 with the RFC 7591 error it names.
  • Field Details

    • INVALID_REDIRECT_URI

      public static final String INVALID_REDIRECT_URI
      RFC 7591 3.2.2: a redirect address is not acceptable.
      See Also:
    • INVALID_CLIENT_METADATA

      public static final String INVALID_CLIENT_METADATA
      RFC 7591 3.2.2: another piece of the metadata is not acceptable.
      See Also:
  • Constructor Details

    • ClientRegistrationException

      public ClientRegistrationException(String error, String description)
      Parameters:
      error - the RFC 7591 error code, such as INVALID_CLIENT_METADATA
      description - what is wrong, shown to the client's developer
  • Method Details

    • getError

      public String getError()
      The RFC 7591 error code.