Enum Class ClientAuthMethod

java.lang.Object
java.lang.Enum<ClientAuthMethod>
dev.relism.flash.ext.oidc.ClientAuthMethod
All Implemented Interfaces:
Serializable, Comparable<ClientAuthMethod>, Constable

public enum ClientAuthMethod extends Enum<ClientAuthMethod>
OAuth2 client authentication method for the token endpoint (RFC 6749 §2.3).
  • POST — credentials sent as client_id / client_secret form fields (default; most providers).
  • BASIC — credentials sent as an Authorization: Basic header; body contains only grant-specific parameters.
  • Enum Constant Details

    • POST

      public static final ClientAuthMethod POST
      client_secret_post — credentials in the request body.
    • BASIC

      public static final ClientAuthMethod BASIC
      client_secret_basic — credentials in the Authorization header.
  • Method Details

    • values

      public static ClientAuthMethod[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ClientAuthMethod valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null