Package org.mariadb.jdbc.plugin
Interface AuthenticationPluginFactory
-
- All Known Implementing Classes:
CachingSha2PasswordPluginFactory,ClearPasswordPluginFactory,Ed25519PasswordPluginFactory,NativePasswordPluginFactory,ParsecPasswordPluginFactory,SendGssApiAuthPacketFactory,SendPamAuthPacketFactory
public interface AuthenticationPluginFactoryAuthentication plugin descriptor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description AuthenticationPlugininitialize(java.lang.String authenticationData, byte[] seed, Configuration conf, HostAddress hostAddress)Plugin initialization.default booleanrequireSecure()Whether this authentication plugin requires a secure connection.java.lang.Stringtype()Authentication plugin type.
-
-
-
Method Detail
-
type
java.lang.String type()
Authentication plugin type.- Returns:
- authentication plugin type. ex: mysql_native_password
-
initialize
AuthenticationPlugin initialize(java.lang.String authenticationData, byte[] seed, Configuration conf, HostAddress hostAddress)
Plugin initialization.- Parameters:
authenticationData- authentication data (password/token)seed- server provided seedconf- Connection optionshostAddress- host address
-
requireSecure
default boolean requireSecure()
Whether 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.- Returns:
- true if a secure connection is required
-
-