Class Ed25519PasswordPlugin
java.lang.Object
org.mariadb.jdbc.internal.com.send.authentication.Ed25519PasswordPlugin
- All Implemented Interfaces:
AuthenticationPlugin
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static byte[]
ed25519SignWithPassword
(String password, byte[] seed, String passwordCharacterEncoding) void
initialize
(String authenticationData, byte[] seed, Options options) Initialization.name()
Authentication plugin name.process
(PacketOutputStream out, PacketInputStream in, AtomicInteger sequence) Process Ed25519 password plugin authentication.type()
Authentication plugin type.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.mariadb.jdbc.authentication.AuthenticationPlugin
mustUseSsl
-
Field Details
-
authenticationData
-
passwordCharacterEncoding
-
seed
private byte[] seed
-
-
Constructor Details
-
Ed25519PasswordPlugin
public Ed25519PasswordPlugin()
-
-
Method Details
-
ed25519SignWithPassword
private static byte[] ed25519SignWithPassword(String password, byte[] seed, String passwordCharacterEncoding) throws SQLException - Throws:
SQLException
-
name
Description copied from interface:AuthenticationPlugin
Authentication plugin name.- Specified by:
name
in interfaceAuthenticationPlugin
- Returns:
- authentication plugin name. ex: Mysql native password
-
type
Description copied from interface:AuthenticationPlugin
Authentication plugin type.- Specified by:
type
in interfaceAuthenticationPlugin
- Returns:
- authentication plugin type. ex: mysql_native_password
-
initialize
Initialization.- Specified by:
initialize
in interfaceAuthenticationPlugin
- Parameters:
authenticationData
- authentication data (password/token)seed
- server provided seedoptions
- Connection string options
-
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
-