public class PacketLoginOutEncryptionRequest extends OutPacket
Modifier and Type | Field and Description |
---|---|
protected short |
keyLength
Length of the public key
|
protected byte[] |
publicKey
Public Key used during the LOGIN stage, reference PacketLoginInEncrytionResponse regarding encryption for the
LOGIN stage
|
protected short |
tokenLength
Length of the verification token
|
protected byte[] |
verifyToken
Verification token used throughout the LOGIN stage
|
Constructor and Description |
---|
PacketLoginOutEncryptionRequest() |
Modifier and Type | Method and Description |
---|---|
PacketDirection |
direction()
Returns the packet direction
|
void |
encode(ByteBuf buf)
Serialized the data held by this packet into a buffer
|
int |
id()
Gets the ID of this packet, according to the protocol specification
|
short |
keyLength()
Gets the length of the encryption key
|
byte[] |
publicKey()
The public encryption key
|
short |
tokenLength()
Gets the length of the client token
|
byte[] |
verifyToken()
The verification token
|
decode, handleReceived, set
protected short keyLength
protected short tokenLength
protected byte[] publicKey
PacketLoginInEncryptionResponse
protected byte[] verifyToken
public PacketLoginOutEncryptionRequest()
public int id()
Packet
public PacketDirection direction()
Packet
direction
in interface Packet
direction
in class OutPacket
PacketDirection.IN
or
PacketDirection.OUT
depending on directionpublic void encode(ByteBuf buf)
Packet
buf
- the buffer to toPacket topublic short keyLength()
public short tokenLength()
public byte[] publicKey()
public byte[] verifyToken()
Copyright © 2016. All rights reserved.