Class Ed25519PasswordPlugin
java.lang.Object
org.mariadb.jdbc.plugin.authentication.standard.Ed25519PasswordPlugin
- All Implemented Interfaces:
AuthenticationPlugin
ED25519 password plugin
-
Constructor Summary
ConstructorsConstructorDescriptionEd25519PasswordPlugin(String authenticationData, byte[] seed, Configuration conf, HostAddress hostAddress) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]hash(Credential credential) Return HashbooleanCan plugins is MitM-proof, permitting returning HASHorg.mariadb.jdbc.client.ReadableByteBufProcess Ed25519 password plugin authentication.
-
Constructor Details
-
Ed25519PasswordPlugin
public Ed25519PasswordPlugin(String authenticationData, byte[] seed, Configuration conf, HostAddress hostAddress)
-
-
Method Details
-
process
public org.mariadb.jdbc.client.ReadableByteBuf process(Writer out, Reader in, org.mariadb.jdbc.client.Context context) throws SQLException, IOException Process Ed25519 password plugin authentication. see https://mariadb.com/kb/en/library/authentication-plugin-ed25519/- Specified by:
processin interfaceAuthenticationPlugin- Parameters:
out- out streamin- in streamcontext- connection context- Returns:
- response packet
- Throws:
IOException- if socket errorSQLException- if plugin exception
-
isMitMProof
public boolean isMitMProof()Description copied from interface:AuthenticationPluginCan plugins is MitM-proof, permitting returning HASH- Specified by:
isMitMProofin interfaceAuthenticationPlugin- Returns:
- true if permitted
-
hash
Return Hash- Specified by:
hashin interfaceAuthenticationPlugin- Parameters:
credential- Credential- Returns:
- hash
-