public class ClearPasswordPlugin extends Object implements AuthenticationPlugin
Constructor and Description |
---|
ClearPasswordPlugin() |
Modifier and Type | Method and Description |
---|---|
void |
initialize(String authenticationData,
byte[] authData,
Options options)
Plugin initialization.
|
boolean |
mustUseSsl()
Indicate if use of this plugins need SSL enabled.
|
String |
name()
Authentication plugin name.
|
Buffer |
process(PacketOutputStream out,
PacketInputStream in,
AtomicInteger sequence)
Send password in clear text to server.
|
String |
type()
Authentication plugin type.
|
public static final String TYPE
public String name()
AuthenticationPlugin
name
in interface AuthenticationPlugin
public String type()
AuthenticationPlugin
type
in interface AuthenticationPlugin
public boolean mustUseSsl()
AuthenticationPlugin
mustUseSsl
in interface AuthenticationPlugin
public void initialize(String authenticationData, byte[] authData, Options options)
AuthenticationPlugin
initialize
in interface AuthenticationPlugin
authenticationData
- authentication data (password/token)authData
- server provided seedoptions
- Connection string optionspublic Buffer process(PacketOutputStream out, PacketInputStream in, AtomicInteger sequence) throws IOException
process
in interface AuthenticationPlugin
out
- out streamin
- in streamsequence
- packet sequenceIOException
- if socket errorCopyright © 2019 mariadb.org. All rights reserved.