Enum MySQLAuthenticationPlugin
- All Implemented Interfaces:
Serializable, Comparable<MySQLAuthenticationPlugin>
MySQL authentication plugins which can be specified at the connection start, more information could be found in MySQL Reference Manual.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionLikesha256_passwordbut enables caching on the server side for better performance and with wider applicability.Default authentication plugin, the client will firstly try to use the plugin name provided by the server.Authentication plugin which enables the client to send password to the server as cleartext without encryption.Authentication plugin which uses SHA-1 hash function to scramble the password and send it to the server.Authentication plugin which uses SHA-256 hash function to scramble the password and send it to the server. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic MySQLAuthenticationPluginReturns 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.
-
Enum Constant Details
-
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. -
CACHING_SHA2_PASSWORD
Likesha256_passwordbut enables caching on the server side for better performance and with wider applicability.
-
-
Field Details
-
value
-
-
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
-