public class NativePasswordPlugin extends java.lang.Object implements AuthenticationPlugin
| Modifier and Type | Field and Description |
|---|---|
private byte[] |
authData |
private java.lang.String |
password |
private java.lang.String |
passwordCharacterEncoding |
| Constructor and Description |
|---|
NativePasswordPlugin(java.lang.String password,
byte[] authData,
java.lang.String passwordCharacterEncoding)
Native password plugin constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Buffer |
process(PacketOutputStream out,
PacketInputStream in,
java.util.concurrent.atomic.AtomicInteger sequence)
Process native password plugin authentication.
|
private final java.lang.String password
private final java.lang.String passwordCharacterEncoding
private byte[] authData
public NativePasswordPlugin(java.lang.String password,
byte[] authData,
java.lang.String passwordCharacterEncoding)
password - passwordauthData - seedpasswordCharacterEncoding - password encoding optionpublic Buffer process(PacketOutputStream out, PacketInputStream in, java.util.concurrent.atomic.AtomicInteger sequence) throws java.io.IOException
process in interface AuthenticationPluginout - out streamin - in streamsequence - packet sequencejava.io.IOException - if socket error