Class SendPamAuthPacketFactory
java.lang.Object
org.mariadb.jdbc.plugin.authentication.standard.SendPamAuthPacketFactory
- All Implemented Interfaces:
AuthenticationPluginFactory
PAM (dialog) authentication plugin. This is a multi-step exchange password. If more than one
step, passwordX (password2, password3, ...) options must be set.
-
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
-
SendPamAuthPacketFactory
public SendPamAuthPacketFactory()
-
-
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
-