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 TypeMethodDescriptionvoid
initialize
(String authenticationData, byte[] authData, Options options) Plugin initialization.boolean
Indicate 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:
-
authenticationData
-
passwordCharacterEncoding
-
-
Constructor Details
-
ClearPasswordPlugin
public ClearPasswordPlugin()
-
-
Method Details
-
name
Description copied from interface:AuthenticationPlugin
Authentication plugin name.- Specified by:
name
in interfaceAuthenticationPlugin
- Returns:
- authentication plugin name. ex: Mysql native password
-
type
Description copied from interface:AuthenticationPlugin
Authentication plugin type.- Specified by:
type
in interfaceAuthenticationPlugin
- Returns:
- authentication plugin type. ex: mysql_native_password
-
mustUseSsl
public boolean mustUseSsl()Description copied from interface:AuthenticationPlugin
Indicate if use of this plugins need SSL enabled.- Specified by:
mustUseSsl
in interfaceAuthenticationPlugin
- Returns:
- true if SSL is mandatory
-
initialize
Description copied from interface:AuthenticationPlugin
Plugin initialization.- Specified by:
initialize
in 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:
process
in interfaceAuthenticationPlugin
- Parameters:
out
- out streamin
- in streamsequence
- packet sequence- Returns:
- response packet
- Throws:
IOException
- if socket error
-