Enum ConfigurationVariables.DefaultAuthenticationPlugin
- java.lang.Object
-
- java.lang.Enum<ConfigurationVariables.DefaultAuthenticationPlugin>
-
- com.oracle.bmc.mysql.model.ConfigurationVariables.DefaultAuthenticationPlugin
-
- All Implemented Interfaces:
BmcEnum
,Serializable
,Comparable<ConfigurationVariables.DefaultAuthenticationPlugin>
- Enclosing class:
- ConfigurationVariables
public static enum ConfigurationVariables.DefaultAuthenticationPlugin extends Enum<ConfigurationVariables.DefaultAuthenticationPlugin> implements BmcEnum
The default authentication plugin.This must be a plugin that uses internal credentials storage, so these values are permitted: mysql_native_password, sha256_password, caching_sha2_password.
As of MySQL 8.0.27, which introduces multifactor authentication, default_authentication_plugin is still used, but in conjunction with and at a lower precedence than the authentication_policy system variable. For details, see The Default Authentication Plugin. Because of this diminished role, default_authentication_plugin is deprecated as of MySQL 8.0.27 and subject to removal in a future MySQL version.
defaultAuthenticationPlugin corresponds to the MySQL system variable [default_authentication_plugin](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_default_authentication_plugin).
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CachingSha2Password
MysqlNativePassword
Sha256Password
UnknownEnumValue
This value is used if a service returns a value for this enum that is not recognized by this version of the SDK.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ConfigurationVariables.DefaultAuthenticationPlugin
create(String key)
String
getValue()
static ConfigurationVariables.DefaultAuthenticationPlugin
valueOf(String name)
Returns the enum constant of this type with the specified name.static ConfigurationVariables.DefaultAuthenticationPlugin[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MysqlNativePassword
public static final ConfigurationVariables.DefaultAuthenticationPlugin MysqlNativePassword
-
Sha256Password
public static final ConfigurationVariables.DefaultAuthenticationPlugin Sha256Password
-
CachingSha2Password
public static final ConfigurationVariables.DefaultAuthenticationPlugin CachingSha2Password
-
UnknownEnumValue
public static final ConfigurationVariables.DefaultAuthenticationPlugin UnknownEnumValue
This value is used if a service returns a value for this enum that is not recognized by this version of the SDK.
-
-
Method Detail
-
values
public static ConfigurationVariables.DefaultAuthenticationPlugin[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ConfigurationVariables.DefaultAuthenticationPlugin c : ConfigurationVariables.DefaultAuthenticationPlugin.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ConfigurationVariables.DefaultAuthenticationPlugin 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 nameNullPointerException
- if the argument is null
-
create
public static ConfigurationVariables.DefaultAuthenticationPlugin create(String key)
-
-