Class SendPamAuthPacket
java.lang.Object
org.mariadb.jdbc.plugin.authentication.standard.SendPamAuthPacket
- All Implemented Interfaces:
AuthenticationPlugin
PAM (dialog) authentication plugin. This is a multi-step exchange password. If more than one
step, passwordX (password2, password3, ...) options must be set.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinitialize(String authenticationData, byte[] seed, Configuration conf, HostAddress hostAddress) Initialization.Process PAM plugin authentication.type()Authentication plugin type.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface AuthenticationPlugin
hash, isMitMProof, requireSsl
-
Field Details
-
authenticationData
-
conf
-
counter
private int counter
-
-
Constructor Details
-
SendPamAuthPacket
public SendPamAuthPacket()
-
-
Method Details
-
type
Description copied from interface:AuthenticationPluginAuthentication plugin type.- Specified by:
typein interfaceAuthenticationPlugin- Returns:
- authentication plugin type. ex: mysql_native_password
-
initialize
public void initialize(String authenticationData, byte[] seed, Configuration conf, HostAddress hostAddress) Initialization.- Specified by:
initializein interfaceAuthenticationPlugin- Parameters:
authenticationData- authentication data (password/token)seed- server provided seedconf- Connection string optionshostAddress- host information
-
process
public ReadableByteBuf process(Writer out, Reader in, Context context) throws SQLException, IOException Process PAM plugin authentication. see https://mariadb.com/kb/en/library/authentication-plugin-pam/- Specified by:
processin interfaceAuthenticationPlugin- Parameters:
out- out streamin- in streamcontext- connection context- Returns:
- response packet
- Throws:
IOException- if socket errorSQLException- if plugin exception
-