Class ClearPasswordPlugin
java.lang.Object
org.mariadb.jdbc.plugin.authentication.addon.ClearPasswordPlugin
- All Implemented Interfaces:
AuthenticationPlugin
Clear password plugin.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate final Configurationprivate final HostAddress -
Constructor Summary
ConstructorsConstructorDescriptionClearPasswordPlugin(String authenticationData, HostAddress hostAddress, Configuration conf) Initialization. -
Method Summary
Modifier and TypeMethodDescriptionSend password in clear text to the server.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface AuthenticationPlugin
hash, isMitMProof
-
Field Details
-
authenticationData
-
hostAddress
-
conf
-
-
Constructor Details
-
ClearPasswordPlugin
Initialization.- Parameters:
authenticationData- authentication data (password/token)
-
-
Method Details
-
process
public ReadableByteBuf process(Writer out, Reader in, Context context, boolean sslFingerPrintValidation) throws IOException, SQLException Send password in clear text to the server.- Specified by:
processin interfaceAuthenticationPlugin- Parameters:
out- out streamin- in streamcontext- contextsslFingerPrintValidation- true if SSL certificate fingerprint validation is enabled- Returns:
- response packet
- Throws:
IOException- if socket errorSQLException- if plugin exception
-