Class SendPamAuthPacket
- java.lang.Object
-
- org.mariadb.jdbc.plugin.authentication.standard.SendPamAuthPacket
-
- All Implemented Interfaces:
AuthenticationPlugin
public class SendPamAuthPacket extends 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.
-
-
Constructor Summary
Constructors Constructor Description SendPamAuthPacket()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
initialize(String authenticationData, byte[] seed, Configuration conf)
Initialization.org.mariadb.jdbc.client.ReadableByteBuf
process(Writer out, Reader in, org.mariadb.jdbc.client.Context context)
Process PAM plugin authentication.String
type()
Authentication plugin type.
-
-
-
Method Detail
-
type
public String type()
Description copied from interface:AuthenticationPlugin
Authentication plugin type.- Specified by:
type
in interfaceAuthenticationPlugin
- Returns:
- authentication plugin type. ex: mysql_native_password
-
initialize
public void initialize(String authenticationData, byte[] seed, Configuration conf)
Initialization.- Specified by:
initialize
in interfaceAuthenticationPlugin
- Parameters:
authenticationData
- authentication data (password/token)seed
- server provided seedconf
- Connection string options
-
process
public org.mariadb.jdbc.client.ReadableByteBuf process(Writer out, Reader in, org.mariadb.jdbc.client.Context context) throws SQLException, IOException
Process PAM plugin authentication. see https://mariadb.com/kb/en/library/authentication-plugin-pam/- Specified by:
process
in interfaceAuthenticationPlugin
- Parameters:
out
- out streamin
- in streamcontext
- connection context- Returns:
- response packet
- Throws:
IOException
- if socket errorSQLException
- if plugin exception
-
-