Class SendPamAuthPacket
java.lang.Object
org.mariadb.jdbc.internal.com.send.authentication.SendPamAuthPacket
- All Implemented Interfaces:
AuthenticationPlugin
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass
Force focus to input field. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSendPamAuthPacket
(String password, byte[] authData, String passwordCharacterEncoding) Pam plugin contrusctor. -
Method Summary
Modifier and TypeMethodDescriptionprocess
(PacketOutputStream out, PacketInputStream in, AtomicInteger sequence) Process PAM plugin authentication.private String
showInputDialog
(String label, boolean isPassword)
-
Field Details
-
password
-
passwordCharacterEncoding
-
authData
private byte[] authData
-
-
Constructor Details
-
SendPamAuthPacket
Pam plugin contrusctor.- Parameters:
password
- passwordauthData
- authentication datapasswordCharacterEncoding
- password encoding option
-
-
Method Details
-
process
public Buffer process(PacketOutputStream out, PacketInputStream in, AtomicInteger sequence) throws IOException, 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:
IOException
- if socket errorSQLException
- if plugin exception
-
showInputDialog
- Throws:
IOException
-