Class SendPamAuthPacket
- java.lang.Object
-
- org.mariadb.jdbc.plugin.authentication.standard.SendPamAuthPacket
-
- All Implemented Interfaces:
AuthenticationPlugin
public class SendPamAuthPacket extends java.lang.Object implements 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 Modifier and Type Field Description private java.lang.StringauthenticationDataprivate Configurationconfprivate intcounter
-
Constructor Summary
Constructors Constructor Description SendPamAuthPacket()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinitialize(java.lang.String authenticationData, byte[] seed, Configuration conf, HostAddress hostAddress)Initialization.ReadableByteBufprocess(Writer out, Reader in, Context context)Process PAM plugin authentication.java.lang.Stringtype()Authentication plugin type.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.mariadb.jdbc.plugin.AuthenticationPlugin
hash, isMitMProof, requireSsl
-
-
-
-
Field Detail
-
authenticationData
private java.lang.String authenticationData
-
conf
private Configuration conf
-
counter
private int counter
-
-
Method Detail
-
type
public java.lang.String type()
Description copied from interface:AuthenticationPluginAuthentication plugin type.- Specified by:
typein interfaceAuthenticationPlugin- Returns:
- authentication plugin type. ex: mysql_native_password
-
initialize
public void initialize(java.lang.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 java.sql.SQLException, java.io.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:
java.io.IOException- if socket errorjava.sql.SQLException- if plugin exception
-
-