Interface MessageVerifier

All Known Implementing Classes:
MessageVerifier.Impl, MessageVerifier.Unsigned

public interface MessageVerifier
Verifies incoming messages' signature and the message chain.

Methods in this interface must be called in the order of the message's reception, as it affects the verification result.

Mappings:
Namespace Name
official si
intermediary net/minecraft/class_7615
named net/minecraft/network/message/MessageVerifier
  • Method Details

    • create

      static MessageVerifier create(@Nullable @Nullable PlayerPublicKey publicKey, boolean secureChatEnforced)
      Mappings:
      Namespace Name Mixin selector
      official a Lsi;a(Lbuf;Z)Lsi;
      intermediary method_44885 Lnet/minecraft/class_7615;method_44885(Lnet/minecraft/class_7428;Z)Lnet/minecraft/class_7615;
      named create Lnet/minecraft/network/message/MessageVerifier;create(Lnet/minecraft/network/encryption/PlayerPublicKey;Z)Lnet/minecraft/network/message/MessageVerifier;
    • verify

      MessageVerifier.Status verify(MessageHeader header, MessageSignatureData signature, byte[] bodyDigest)
      Returns the status of verifying the header.

      Clients can receive only the message header instead of the whole message. This allows the verification of such messages.

      Returns:
      the status of verifying the header
      Mappings:
      Namespace Name Mixin selector
      official a Lsi;a(Lsh;Lrz;[B)Lsi$b;
      intermediary method_44887 Lnet/minecraft/class_7615;method_44887(Lnet/minecraft/class_7614;Lnet/minecraft/class_7469;[B)Lnet/minecraft/class_7615$class_7646;
      named verify Lnet/minecraft/network/message/MessageVerifier;verify(Lnet/minecraft/network/message/MessageHeader;Lnet/minecraft/network/message/MessageSignatureData;[B)Lnet/minecraft/network/message/MessageVerifier$Status;
    • verify

      Returns the status of verifying the message.
      Returns:
      the status of verifying the message
      Mappings:
      Namespace Name Mixin selector
      official a Lsi;a(Lsd;)Lsi$b;
      intermediary method_44886 Lnet/minecraft/class_7615;method_44886(Lnet/minecraft/class_7471;)Lnet/minecraft/class_7615$class_7646;
      named verify Lnet/minecraft/network/message/MessageVerifier;verify(Lnet/minecraft/network/message/SignedMessage;)Lnet/minecraft/network/message/MessageVerifier$Status;