Package io.confluent.flink.plugin
Enum AuthMode
- All Implemented Interfaces:
Serializable,Comparable<AuthMode>,java.lang.constant.Constable
Authentication mode for the Confluent Cloud.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionConfluent Cloud API key and secret.OAuth 2.0 client_credentials grant against an external IdP.User supplied OAuth bearer token, either as a static string or as a programmaticOAuthTokenProvidercallback. -
Method Summary
Modifier and TypeMethodDescriptionstatic AuthModeParses a string value to the correspondingAuthMode.toString()static AuthModeReturns the enum constant of this type with the specified name.static AuthMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
API_KEY
Confluent Cloud API key and secret. This is the default. -
OAUTH_CLIENT_CREDENTIALS
OAuth 2.0 client_credentials grant against an external IdP. -
OAUTH_STATIC_TOKEN
User supplied OAuth bearer token, either as a static string or as a programmaticOAuthTokenProvidercallback.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
toString
-
parse
Parses a string value to the correspondingAuthMode.- 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
-