Package net.md_5.bungee.protocol.packet
Class EncryptionRequest
java.lang.Object
net.md_5.bungee.protocol.DefinedPacket
net.md_5.bungee.protocol.packet.EncryptionRequest
-
Constructor Summary
ConstructorsConstructorDescriptionEncryptionRequest(String serverId, byte[] publicKey, byte[] verifyToken, boolean shouldAuthenticate) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanbyte[]byte[]voidhandle(AbstractPacketHandler handler) inthashCode()booleanvoidread(io.netty.buffer.ByteBuf buf, ProtocolConstants.Direction direction, int protocolVersion) voidsetPublicKey(byte[] publicKey) voidsetServerId(String serverId) voidsetShouldAuthenticate(boolean shouldAuthenticate) voidsetVerifyToken(byte[] verifyToken) toString()voidwrite(io.netty.buffer.ByteBuf buf, ProtocolConstants.Direction direction, int protocolVersion) Methods inherited from class net.md_5.bungee.protocol.DefinedPacket
nextProtocol, read, read, readArray, readArray, readBaseComponent, readBaseComponent, readComponentStyle, readEitherBaseComponent, readEnumSet, readFixedBitSet, readLengthPrefixed, readNullable, readNumberFormat, readProperties, readPublicKey, readString, readString, readStringArray, readStringMapKey, readTag, readTag, readUUID, readVarInt, readVarInt, readVarIntArray, readVarShort, setVarInt, toArray, write, write, writeArray, writeBaseComponent, writeComponentStyle, writeEitherBaseComponent, writeEnumSet, writeFixedBitSet, writeLengthPrefixed, writeNullable, writeNumberFormat, writeProperties, writePublicKey, writeString, writeString, writeStringArray, writeTag, writeUUID, writeVarInt, writeVarShort
-
Constructor Details
-
EncryptionRequest
public EncryptionRequest() -
EncryptionRequest
public EncryptionRequest(String serverId, byte[] publicKey, byte[] verifyToken, boolean shouldAuthenticate)
-
-
Method Details
-
read
public void read(io.netty.buffer.ByteBuf buf, ProtocolConstants.Direction direction, int protocolVersion) - Overrides:
readin classDefinedPacket
-
write
public void write(io.netty.buffer.ByteBuf buf, ProtocolConstants.Direction direction, int protocolVersion) - Overrides:
writein classDefinedPacket
-
handle
- Specified by:
handlein classDefinedPacket- Throws:
Exception
-
getServerId
-
getPublicKey
public byte[] getPublicKey() -
getVerifyToken
public byte[] getVerifyToken() -
isShouldAuthenticate
public boolean isShouldAuthenticate() -
setServerId
-
setPublicKey
public void setPublicKey(byte[] publicKey) -
setVerifyToken
public void setVerifyToken(byte[] verifyToken) -
setShouldAuthenticate
public void setShouldAuthenticate(boolean shouldAuthenticate) -
toString
- Specified by:
toStringin classDefinedPacket
-
equals
- Specified by:
equalsin classDefinedPacket
-
canEqual
-
hashCode
public int hashCode()- Specified by:
hashCodein classDefinedPacket
-