public class CPacketEncryptionResponse extends java.lang.Object implements Packet<INetHandlerLoginServer>
Modifier and Type | Field and Description |
---|---|
private byte[] |
secretKeyEncrypted |
private byte[] |
verifyTokenEncrypted |
Constructor and Description |
---|
CPacketEncryptionResponse() |
CPacketEncryptionResponse(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(INetHandlerLoginServer handler) |
void |
readPacketData(PacketBuffer buf) |
void |
writePacketData(PacketBuffer buf) |
private byte[] secretKeyEncrypted
private byte[] verifyTokenEncrypted
public CPacketEncryptionResponse()
public CPacketEncryptionResponse(javax.crypto.SecretKey secret, java.security.PublicKey key, byte[] verifyToken)
public void readPacketData(PacketBuffer buf) throws java.io.IOException
readPacketData
in interface Packet<INetHandlerLoginServer>
java.io.IOException
public void writePacketData(PacketBuffer buf) throws java.io.IOException
writePacketData
in interface Packet<INetHandlerLoginServer>
java.io.IOException
public void processPacket(INetHandlerLoginServer handler)
processPacket
in interface Packet<INetHandlerLoginServer>
public javax.crypto.SecretKey getSecretKey(java.security.PrivateKey key)
public byte[] getVerifyToken(java.security.PrivateKey key)