Class ClearPasswordPlugin
- java.lang.Object
-
- org.mariadb.jdbc.plugin.authentication.addon.ClearPasswordPlugin
-
- All Implemented Interfaces:
AuthenticationPlugin
public class ClearPasswordPlugin extends java.lang.Object implements AuthenticationPlugin
Clear password plugin.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringauthenticationDataprivate Configurationconfprivate HostAddresshostAddress
-
Constructor Summary
Constructors Constructor Description ClearPasswordPlugin(java.lang.String authenticationData, HostAddress hostAddress, Configuration conf)Initialization.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReadableByteBufprocess(Writer out, Reader in, Context context, boolean sslFingerPrintValidation)Send password in clear text to the server.-
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.plugin.AuthenticationPlugin
hash, isMitMProof
-
-
-
-
Field Detail
-
authenticationData
private final java.lang.String authenticationData
-
hostAddress
private final HostAddress hostAddress
-
conf
private final Configuration conf
-
-
Constructor Detail
-
ClearPasswordPlugin
public ClearPasswordPlugin(java.lang.String authenticationData, HostAddress hostAddress, Configuration conf)Initialization.- Parameters:
authenticationData- authentication data (password/token)
-
-
Method Detail
-
process
public ReadableByteBuf process(Writer out, Reader in, Context context, boolean sslFingerPrintValidation) throws java.io.IOException, java.sql.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:
java.io.IOException- if socket errorjava.sql.SQLException- if plugin exception
-
-