public class SendEd25519PasswordAuthPacket extends AbstractAuthSwitchSendResponsePacket implements InterfaceAuthSwitchSendResponsePacket
authData, packSeq, password, passwordCharacterEncoding
Constructor and Description |
---|
SendEd25519PasswordAuthPacket(java.lang.String password,
byte[] authData,
int packSeq,
java.lang.String passwordCharacterEncoding) |
Modifier and Type | Method and Description |
---|---|
private static byte[] |
ed25519SignWithPassword(java.lang.String password,
byte[] seed,
java.lang.String passwordCharacterEncoding)
The client signs the random seed from server, using the password as a private key.
|
void |
send(PacketOutputStream pos)
Send Ed25519 plugin authentication result.
|
handleResultPacket
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
handleResultPacket
public SendEd25519PasswordAuthPacket(java.lang.String password, byte[] authData, int packSeq, java.lang.String passwordCharacterEncoding)
public void send(PacketOutputStream pos) throws java.io.IOException, java.sql.SQLException
send
in interface InterfaceSendPacket
pos
- database socketjava.io.IOException
- if socket error occurjava.sql.SQLException
- if other kind of error occurprivate static byte[] ed25519SignWithPassword(java.lang.String password, byte[] seed, java.lang.String passwordCharacterEncoding) throws java.sql.SQLException
password
- passwordseed
- server seedpasswordCharacterEncoding
- password encodingjava.sql.SQLException
- if anything wrong occur