public class OldPasswordPlugin extends java.lang.Object implements AuthenticationPlugin
| Modifier and Type | Class and Description |
|---|---|
private class |
OldPasswordPlugin.RandStruct |
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
authenticationData |
private byte[] |
seed |
static java.lang.String |
TYPE |
| Constructor and Description |
|---|
OldPasswordPlugin() |
| Modifier and Type | Method and Description |
|---|---|
private byte[] |
cryptOldFormatPassword(java.lang.String password,
java.lang.String seed) |
private long[] |
hashPassword(java.lang.String password) |
void |
initialize(java.lang.String authenticationData,
byte[] seed,
Options options)
Plugin initialization.
|
java.lang.String |
name()
Authentication plugin name.
|
Buffer |
process(PacketOutputStream out,
PacketInputStream in,
java.util.concurrent.atomic.AtomicInteger sequence)
Process old password plugin authentication.
|
private double |
random(OldPasswordPlugin.RandStruct rand) |
java.lang.String |
type()
Authentication plugin type.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmustUseSslpublic static final java.lang.String TYPE
private java.lang.String authenticationData
private byte[] seed
public java.lang.String name()
AuthenticationPluginname in interface AuthenticationPluginpublic java.lang.String type()
AuthenticationPlugintype in interface AuthenticationPluginpublic void initialize(java.lang.String authenticationData,
byte[] seed,
Options options)
AuthenticationPlugininitialize in interface AuthenticationPluginauthenticationData - authentication data (password/token)seed - server provided seedoptions - Connection string optionspublic 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 errorprivate byte[] cryptOldFormatPassword(java.lang.String password,
java.lang.String seed)
private double random(OldPasswordPlugin.RandStruct rand)
private long[] hashPassword(java.lang.String password)