Enum AuthMode

java.lang.Object
java.lang.Enum<AuthMode>
io.confluent.flink.plugin.AuthMode
All Implemented Interfaces:
Serializable, Comparable<AuthMode>, java.lang.constant.Constable

public enum AuthMode extends Enum<AuthMode>
Authentication mode for the Confluent Cloud.
  • Enum Constant Details

    • API_KEY

      public static final AuthMode API_KEY
      Confluent Cloud API key and secret. This is the default.
    • OAUTH_CLIENT_CREDENTIALS

      public static final AuthMode OAUTH_CLIENT_CREDENTIALS
      OAuth 2.0 client_credentials grant against an external IdP.
    • OAUTH_STATIC_TOKEN

      public static final AuthMode OAUTH_STATIC_TOKEN
      User supplied OAuth bearer token, either as a static string or as a programmatic OAuthTokenProvider callback.
  • Method Details

    • values

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

      public static AuthMode valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • toString

      public String toString()
      Overrides:
      toString in class Enum<AuthMode>
    • parse

      public static AuthMode parse(String value)
      Parses a string value to the corresponding AuthMode.
      Parameters:
      value - the mode string (e.g., "api-key", "oauth-client-credentials")
      Returns:
      the matching AuthMode
      Throws:
      ConfluentFlinkException - if the value doesn't match any mode