public enum MySQLAuthenticationPlugin extends Enum<MySQLAuthenticationPlugin>
Enum Constant and Description |
---|
CACHING_SHA2_PASSWORD
Like
sha256_password but enables caching on the server side for better performance and with wider applicability. |
DEFAULT
Default authentication plugin, the client will firstly try to use the plugin name provided by the server.
|
MYSQL_CLEAR_PASSWORD
Authentication plugin which enables the client to send password to the server as cleartext without encryption.
|
MYSQL_NATIVE_PASSWORD
Authentication plugin which uses SHA-1 hash function to scramble the password and send it to the server.
|
SHA256_PASSWORD
Authentication plugin which uses SHA-256 hash function to scramble the password and send it to the server.
|
Modifier and Type | Method and Description |
---|---|
static MySQLAuthenticationPlugin |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MySQLAuthenticationPlugin[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MySQLAuthenticationPlugin DEFAULT
public static final MySQLAuthenticationPlugin MYSQL_CLEAR_PASSWORD
public static final MySQLAuthenticationPlugin MYSQL_NATIVE_PASSWORD
public static final MySQLAuthenticationPlugin SHA256_PASSWORD
public static final MySQLAuthenticationPlugin CACHING_SHA2_PASSWORD
sha256_password
but enables caching on the server side for better performance and with wider applicability.public final String value
public static MySQLAuthenticationPlugin[] values()
for (MySQLAuthenticationPlugin c : MySQLAuthenticationPlugin.values()) System.out.println(c);
public static MySQLAuthenticationPlugin valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2024 Eclipse. All rights reserved.