Class SendPamAuthPacketFactory
- java.lang.Object
-
- org.mariadb.jdbc.plugin.authentication.standard.SendPamAuthPacketFactory
-
- All Implemented Interfaces:
AuthenticationPluginFactory
public class SendPamAuthPacketFactory extends java.lang.Object implements 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 Constructor Description SendPamAuthPacketFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthenticationPlugininitialize(java.lang.String authenticationData, byte[] seed, Configuration conf, HostAddress hostAddress)Initialization.booleanrequireSecure()Whether this authentication plugin requires a secure connection.java.lang.Stringtype()Authentication plugin type.
-
-
-
Method Detail
-
type
public java.lang.String 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(java.lang.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
-
-