public class EncryptionResponse extends DefinedPacket
Modifier and Type | Class and Description |
---|---|
static class |
EncryptionResponse.EncryptionData |
Constructor and Description |
---|
EncryptionResponse() |
EncryptionResponse(byte[] sharedSecret,
byte[] verifyToken,
EncryptionResponse.EncryptionData encryptionData) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
int |
expectedMaxLength(io.netty.buffer.ByteBuf buf,
ProtocolConstants.Direction direction,
int protocolVersion) |
int |
expectedMinLength(io.netty.buffer.ByteBuf buf,
ProtocolConstants.Direction direction,
int protocolVersion) |
EncryptionResponse.EncryptionData |
getEncryptionData() |
byte[] |
getSharedSecret() |
byte[] |
getVerifyToken() |
void |
handle(AbstractPacketHandler handler) |
int |
hashCode() |
void |
read(io.netty.buffer.ByteBuf buf,
ProtocolConstants.Direction direction,
int protocolVersion) |
void |
setEncryptionData(EncryptionResponse.EncryptionData encryptionData) |
void |
setSharedSecret(byte[] sharedSecret) |
void |
setVerifyToken(byte[] verifyToken) |
String |
toString() |
void |
write(io.netty.buffer.ByteBuf buf,
ProtocolConstants.Direction direction,
int protocolVersion) |
read, readArray, readArray, readProperties, readPublicKey, readString, readString, readStringArray, readTag, readUUID, readVarInt, readVarInt, readVarIntArray, readVarShort, toArray, write, writeArray, writeProperties, writePublicKey, writeString, writeString, writeStringArray, writeTag, writeUUID, writeVarInt, writeVarShort
public EncryptionResponse()
public EncryptionResponse(byte[] sharedSecret, byte[] verifyToken, EncryptionResponse.EncryptionData encryptionData)
public void read(io.netty.buffer.ByteBuf buf, ProtocolConstants.Direction direction, int protocolVersion)
read
in class DefinedPacket
public void write(io.netty.buffer.ByteBuf buf, ProtocolConstants.Direction direction, int protocolVersion)
write
in class DefinedPacket
public void handle(AbstractPacketHandler handler) throws Exception
handle
in class DefinedPacket
Exception
public int expectedMaxLength(io.netty.buffer.ByteBuf buf, ProtocolConstants.Direction direction, int protocolVersion)
expectedMaxLength
in class DefinedPacket
public int expectedMinLength(io.netty.buffer.ByteBuf buf, ProtocolConstants.Direction direction, int protocolVersion)
expectedMinLength
in class DefinedPacket
public byte[] getSharedSecret()
public byte[] getVerifyToken()
public EncryptionResponse.EncryptionData getEncryptionData()
public void setSharedSecret(byte[] sharedSecret)
public void setVerifyToken(byte[] verifyToken)
public void setEncryptionData(EncryptionResponse.EncryptionData encryptionData)
public String toString()
toString
in class DefinedPacket
public boolean equals(Object o)
equals
in class DefinedPacket
protected boolean canEqual(Object other)
public int hashCode()
hashCode
in class DefinedPacket
Copyright © 2019–2022. All rights reserved.