Class Ed25519PasswordPlugin
- java.lang.Object
-
- org.mariadb.jdbc.internal.com.send.authentication.Ed25519PasswordPlugin
-
- All Implemented Interfaces:
AuthenticationPlugin
public class Ed25519PasswordPlugin extends java.lang.Object implements AuthenticationPlugin
-
-
Field Summary
Fields Modifier and Type Field Description private byte[]authDataprivate java.lang.Stringpasswordprivate java.lang.StringpasswordCharacterEncoding
-
Constructor Summary
Constructors Constructor Description Ed25519PasswordPlugin(java.lang.String password, byte[] authData, java.lang.String passwordCharacterEncoding)Ed25519 password plugin constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static byte[]ed25519SignWithPassword(java.lang.String password, byte[] seed, java.lang.String passwordCharacterEncoding)Bufferprocess(PacketOutputStream out, PacketInputStream in, java.util.concurrent.atomic.AtomicInteger sequence)Process Ed25519 password plugin authentication.
-
-
-
Method Detail
-
process
public Buffer process(PacketOutputStream out, PacketInputStream in, java.util.concurrent.atomic.AtomicInteger sequence) throws java.io.IOException, java.sql.SQLException
Process Ed25519 password plugin authentication. see https://mariadb.com/kb/en/library/authentication-plugin-ed25519/- Specified by:
processin interfaceAuthenticationPlugin- Parameters:
out- out streamin- in streamsequence- packet sequence- Returns:
- response packet
- Throws:
java.io.IOException- if socket errorjava.sql.SQLException- if plugin exception
-
ed25519SignWithPassword
private static byte[] ed25519SignWithPassword(java.lang.String password, byte[] seed, java.lang.String passwordCharacterEncoding) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
-