Class ClearPasswordPluginFactory
java.lang.Object
org.mariadb.jdbc.plugin.authentication.addon.ClearPasswordPluginFactory
- All Implemented Interfaces:
AuthenticationPluginFactory
Clear password plugin.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioninitialize(String authenticationData, byte[] seed, Configuration conf, HostAddress hostAddress) Initialization.booleanWhether this authentication plugin requires a secure connection.type()Authentication plugin type.
-
Constructor Details
-
ClearPasswordPluginFactory
public ClearPasswordPluginFactory()
-
-
Method Details
-
type
Description copied from interface:AuthenticationPluginFactoryAuthentication plugin type.- Specified by:
typein interfaceAuthenticationPluginFactory- Returns:
- authentication plugin type. ex: mysql_native_password
-
requireSecure
public boolean requireSecure()Description copied from interface:AuthenticationPluginFactoryWhether this authentication plugin requires a secure connection. Plugins that transmit the password (or other secret) in clear text returntrue; the driver then only runs them over a secure transport (TLS, or a local unix socket), never over plain TCP.- Specified by:
requireSecurein interfaceAuthenticationPluginFactory- Returns:
- true if a secure connection is required
-
initialize
public AuthenticationPlugin initialize(String authenticationData, byte[] seed, Configuration conf, HostAddress hostAddress) Initialization.- Specified by:
initializein interfaceAuthenticationPluginFactory- Parameters:
authenticationData- authentication data (password/token)seed- server provided seedconf- Connection string optionshostAddress- host information
-