Class NativePasswordPlugin
java.lang.Object
org.mariadb.jdbc.internal.com.send.authentication.NativePasswordPlugin
- All Implemented Interfaces:
AuthenticationPlugin
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionNativePasswordPlugin
(String password, byte[] authData, String passwordCharacterEncoding) Native password plugin constructor. -
Method Summary
Modifier and TypeMethodDescriptionprocess
(PacketOutputStream out, PacketInputStream in, AtomicInteger sequence) Process native password plugin authentication.
-
Field Details
-
password
-
passwordCharacterEncoding
-
authData
private byte[] authData
-
-
Constructor Details
-
NativePasswordPlugin
Native password plugin constructor.- Parameters:
password
- passwordauthData
- seedpasswordCharacterEncoding
- password encoding option
-
-
Method Details
-
process
public Buffer process(PacketOutputStream out, PacketInputStream in, AtomicInteger sequence) throws 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:
IOException
- if socket error
-