public class CEncryptionResponsePacket extends java.lang.Object implements IPacket<IServerLoginNetHandler>
Modifier and Type | Field and Description |
---|---|
private byte[] |
secretKeyEncrypted |
private byte[] |
verifyTokenEncrypted |
Constructor and Description |
---|
CEncryptionResponsePacket() |
CEncryptionResponsePacket(javax.crypto.SecretKey secret,
java.security.PublicKey key,
byte[] verifyToken) |
Modifier and Type | Method and Description |
---|---|
javax.crypto.SecretKey |
getSecretKey(java.security.PrivateKey key) |
byte[] |
getVerifyToken(java.security.PrivateKey key) |
void |
processPacket(IServerLoginNetHandler handler) |
void |
readPacketData(PacketBuffer buf) |
void |
writePacketData(PacketBuffer buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
shouldSkipErrors
private byte[] secretKeyEncrypted
private byte[] verifyTokenEncrypted
public CEncryptionResponsePacket()
public CEncryptionResponsePacket(javax.crypto.SecretKey secret, java.security.PublicKey key, byte[] verifyToken)
public void readPacketData(PacketBuffer buf) throws java.io.IOException
readPacketData
in interface IPacket<IServerLoginNetHandler>
java.io.IOException
public void writePacketData(PacketBuffer buf) throws java.io.IOException
writePacketData
in interface IPacket<IServerLoginNetHandler>
java.io.IOException
public void processPacket(IServerLoginNetHandler handler)
processPacket
in interface IPacket<IServerLoginNetHandler>
public javax.crypto.SecretKey getSecretKey(java.security.PrivateKey key)
public byte[] getVerifyToken(java.security.PrivateKey key)