Class NativePasswordPlugin
- java.lang.Object
-
- org.mariadb.jdbc.internal.com.send.authentication.NativePasswordPlugin
-
- All Implemented Interfaces:
AuthenticationPlugin
public class NativePasswordPlugin extends java.lang.Object implements AuthenticationPlugin
-
-
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 NativePasswordPlugin(java.lang.String password, byte[] authData, java.lang.String passwordCharacterEncoding)
Native password plugin constructor.
-
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 native password plugin authentication.
-
-
-
Method Detail
-
process
public Buffer process(PacketOutputStream out, PacketInputStream in, java.util.concurrent.atomic.AtomicInteger sequence) throws java.io.IOException
Process native password plugin authentication. see https://mariadb.com/kb/en/library/authentication-plugin-mysql_native_password/- Specified by:
process
in interfaceAuthenticationPlugin
- Parameters:
out
- out streamin
- in streamsequence
- packet sequence- Returns:
- response packet
- Throws:
java.io.IOException
- if socket error
-
-