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, wait
mustUseSsl
public static final java.lang.String TYPE
private java.lang.String authenticationData
private byte[] seed
public java.lang.String name()
AuthenticationPlugin
name
in interface AuthenticationPlugin
public java.lang.String type()
AuthenticationPlugin
type
in interface AuthenticationPlugin
public void initialize(java.lang.String authenticationData, byte[] seed, Options options)
AuthenticationPlugin
initialize
in interface AuthenticationPlugin
authenticationData
- 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 AuthenticationPlugin
out
- 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)