Class Ed25519PasswordPlugin
java.lang.Object
org.mariadb.jdbc.internal.com.send.authentication.Ed25519PasswordPlugin
- All Implemented Interfaces:
AuthenticationPlugin
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEd25519PasswordPlugin
(String password, byte[] authData, String passwordCharacterEncoding) Ed25519 password plugin constructor. -
Method Summary
Modifier and TypeMethodDescriptionprivate static byte[]
ed25519SignWithPassword
(String password, byte[] seed, String passwordCharacterEncoding) process
(PacketOutputStream out, PacketInputStream in, AtomicInteger sequence) Process Ed25519 password plugin authentication.
-
Field Details
-
password
-
passwordCharacterEncoding
-
authData
private byte[] authData
-
-
Constructor Details
-
Ed25519PasswordPlugin
Ed25519 password plugin constructor.- Parameters:
password
- passwordauthData
- seedpasswordCharacterEncoding
- password encoding
-
-
Method Details
-
process
public Buffer process(PacketOutputStream out, PacketInputStream in, AtomicInteger sequence) throws IOException, SQLException Process Ed25519 password plugin authentication. see https://mariadb.com/kb/en/library/authentication-plugin-ed25519/- Specified by:
process
in interfaceAuthenticationPlugin
- Parameters:
out
- out streamin
- in streamsequence
- packet sequence- Returns:
- response packet
- Throws:
IOException
- if socket errorSQLException
- if plugin exception
-
ed25519SignWithPassword
private static byte[] ed25519SignWithPassword(String password, byte[] seed, String passwordCharacterEncoding) throws SQLException - Throws:
SQLException
-