Class ClearPasswordPlugin
java.lang.Object
org.mariadb.jdbc.internal.com.send.authentication.ClearPasswordPlugin
- All Implemented Interfaces:
AuthenticationPlugin
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinitialize(String authenticationData, byte[] authData, Options options) Plugin initialization.booleanIndicate if use of this plugins need SSL enabled.name()Authentication plugin name.process(PacketOutputStream out, PacketInputStream in, AtomicInteger sequence) Send password in clear text to server.type()Authentication plugin type.
-
Field Details
-
TYPE
- See Also:
-
-
Constructor Details
-
ClearPasswordPlugin
public ClearPasswordPlugin()
-
-
Method Details
-
name
Description copied from interface:AuthenticationPluginAuthentication plugin name.- Specified by:
namein interfaceAuthenticationPlugin- Returns:
- authentication plugin name. ex: Mysql native password
-
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
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
-