public class PacketLoginInEncryptionResponse extends InPacket
Modifier and Type | Class and Description |
---|---|
protected static class |
PacketLoginInEncryptionResponse.HashGenerator |
static class |
PacketLoginInEncryptionResponse.SessionResponse
Response received from the session server
|
Modifier and Type | Field and Description |
---|---|
protected byte[] |
encryptedSecret
Secret token used as an AES encryption key (encrypted using login keypair)
|
protected byte[] |
encryptedToken
Login token (encrypted using the login keypair)
|
protected static com.google.gson.Gson |
GSON
Gson instance
|
protected static Pattern |
idDash
Pattern used to format the UUID
|
protected short |
secretLength
Length of the secret key
|
protected short |
tokenLength
Length of the token
|
Constructor and Description |
---|
PacketLoginInEncryptionResponse() |
Modifier and Type | Method and Description |
---|---|
Packet |
decode(ByteBuf buf)
Sets the fields of the packet from the data serialized into the buffer
|
void |
handleReceived(ClientConnection connection)
Handles the packet after receiving it from a connection, is invoked by the ClientConnection that received it
|
int |
id()
Gets the ID of this packet, according to the protocol specification
|
short |
secretLength()
Gets the length of the secret
|
short |
tokenLength()
Gets the length of the client token
|
protected static final com.google.gson.Gson GSON
protected short secretLength
protected short tokenLength
protected byte[] encryptedSecret
protected byte[] encryptedToken
public PacketLoginInEncryptionResponse()
public int id()
Packet
public Packet decode(ByteBuf buf)
Packet
buf
- the buffer storing the serialized packet datapublic short secretLength()
public short tokenLength()
public void handleReceived(ClientConnection connection)
Packet
Used to allow the packet to notify the ClientConnection
of packets the server receives, and make changes specific to this packet
connection
- The connection that sent the packetCopyright © 2016. All rights reserved.