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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
SendPamAuthPacket.RequestFocusListener
Force focus to input field.
-
Field Summary
Fields Modifier and Type Field Description private byte[]
authData
private java.lang.String
password
private java.lang.String
passwordCharacterEncoding
-
Constructor Summary
Constructors Constructor Description SendPamAuthPacket(java.lang.String password, byte[] authData, java.lang.String passwordCharacterEncoding)
Pam plugin contrusctor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Buffer
process(PacketOutputStream out, PacketInputStream in, java.util.concurrent.atomic.AtomicInteger sequence)
Process PAM plugin authentication.private java.lang.String
showInputDialog(java.lang.String label, boolean isPassword)
-
-
-
Method Detail
-
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
-
showInputDialog
private java.lang.String showInputDialog(java.lang.String label, boolean isPassword) throws java.io.IOException
- Throws:
java.io.IOException
-
-