Class ClearPasswordPlugin
- java.lang.Object
-
- org.mariadb.jdbc.internal.com.send.authentication.ClearPasswordPlugin
-
- All Implemented Interfaces:
AuthenticationPlugin
public class ClearPasswordPlugin extends Object implements AuthenticationPlugin
-
-
Constructor Summary
Constructors Constructor Description ClearPasswordPlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinitialize(String authenticationData, byte[] authData, Options options)Plugin initialization.booleanmustUseSsl()Indicate if use of this plugins need SSL enabled.Stringname()Authentication plugin name.Bufferprocess(PacketOutputStream out, PacketInputStream in, AtomicInteger sequence)Send password in clear text to server.Stringtype()Authentication plugin type.
-
-
-
Field Detail
-
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
name
public String name()
Description copied from interface:AuthenticationPluginAuthentication plugin name.- Specified by:
namein interfaceAuthenticationPlugin- Returns:
- authentication plugin name. ex: Mysql native password
-
type
public String type()
Description copied from interface:AuthenticationPluginAuthentication plugin type.- Specified by:
typein interfaceAuthenticationPlugin- Returns:
- authentication plugin type. ex: mysql_native_password
-
mustUseSsl
public boolean mustUseSsl()
Description copied from interface:AuthenticationPluginIndicate if use of this plugins need SSL enabled.- Specified by:
mustUseSslin interfaceAuthenticationPlugin- Returns:
- true if SSL is mandatory
-
initialize
public void initialize(String authenticationData, byte[] authData, Options options)
Description copied from interface:AuthenticationPluginPlugin initialization.- Specified by:
initializein interfaceAuthenticationPlugin- Parameters:
authenticationData- authentication data (password/token)authData- server provided seedoptions- Connection string options
-
process
public Buffer process(PacketOutputStream out, PacketInputStream in, AtomicInteger sequence) throws IOException
Send password in clear text to server.- Specified by:
processin interfaceAuthenticationPlugin- Parameters:
out- out streamin- in streamsequence- packet sequence- Returns:
- response packet
- Throws:
IOException- if socket error
-
-