Class EncryptionRequest

java.lang.Object
net.md_5.bungee.protocol.DefinedPacket
net.md_5.bungee.protocol.packet.EncryptionRequest

public class EncryptionRequest extends DefinedPacket
  • 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:
      read in class DefinedPacket
    • write

      public void write(io.netty.buffer.ByteBuf buf, ProtocolConstants.Direction direction, int protocolVersion)
      Overrides:
      write in class DefinedPacket
    • handle

      public void handle(AbstractPacketHandler handler) throws Exception
      Specified by:
      handle in class DefinedPacket
      Throws:
      Exception
    • getServerId

      public String getServerId()
    • getPublicKey

      public byte[] getPublicKey()
    • getVerifyToken

      public byte[] getVerifyToken()
    • isShouldAuthenticate

      public boolean isShouldAuthenticate()
    • setServerId

      public void setServerId(String serverId)
    • setPublicKey

      public void setPublicKey(byte[] publicKey)
    • setVerifyToken

      public void setVerifyToken(byte[] verifyToken)
    • setShouldAuthenticate

      public void setShouldAuthenticate(boolean shouldAuthenticate)
    • toString

      public String toString()
      Specified by:
      toString in class DefinedPacket
    • equals

      public boolean equals(Object o)
      Specified by:
      equals in class DefinedPacket
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in class DefinedPacket