Class SendPamAuthPacket
- java.lang.Object
-
- org.mariadb.jdbc.internal.com.send.authentication.SendPamAuthPacket
-
- All Implemented Interfaces:
AuthenticationPlugin
public class SendPamAuthPacket extends java.lang.Object implements AuthenticationPlugin
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
authenticationData
private int
counter
private Options
options
private java.lang.String
passwordCharacterEncoding
-
Constructor Summary
Constructors Constructor Description SendPamAuthPacket()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
initialize(java.lang.String authenticationData, byte[] seed, Options options)
Initialization.java.lang.String
name()
Authentication plugin name.Buffer
process(PacketOutputStream out, PacketInputStream in, java.util.concurrent.atomic.AtomicInteger sequence)
Process PAM plugin authentication.java.lang.String
type()
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.authentication.AuthenticationPlugin
mustUseSsl
-
-
-
-
Field Detail
-
authenticationData
private java.lang.String authenticationData
-
passwordCharacterEncoding
private java.lang.String passwordCharacterEncoding
-
options
private Options options
-
counter
private int counter
-
-
Method Detail
-
name
public java.lang.String name()
Description copied from interface:AuthenticationPlugin
Authentication plugin name.- Specified by:
name
in interfaceAuthenticationPlugin
- Returns:
- authentication plugin name. ex: Mysql native password
-
type
public java.lang.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(java.lang.String authenticationData, byte[] seed, Options options)
Initialization.- Specified by:
initialize
in interfaceAuthenticationPlugin
- Parameters:
authenticationData
- authentication data (password/token)seed
- server provided seedoptions
- Connection string options
-
process
public Buffer process(PacketOutputStream out, PacketInputStream in, java.util.concurrent.atomic.AtomicInteger sequence) throws java.io.IOException, java.sql.SQLException
Process PAM plugin authentication. see https://mariadb.com/kb/en/library/authentication-plugin-pam/- Specified by:
process
in interfaceAuthenticationPlugin
- Parameters:
out
- out streamin
- in streamsequence
- packet sequence- Returns:
- response packet
- Throws:
java.io.IOException
- if socket errorjava.sql.SQLException
- if plugin exception
-
-