Package net.minecraft.network.message
Interface MessageVerifier
- All Known Implementing Classes:
MessageVerifier.Impl
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 sgintermediary net/minecraft/class_7615named net/minecraft/network/message/MessageVerifier
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumstatic class -
Method Summary
Modifier and TypeMethodDescriptionstatic MessageVerifiercreate(@Nullable PlayerPublicKey publicKey, boolean bool) static MessageVerifiermethod_45057(MessageVerifier.class_7646 class_7646) storeHeaderVerification(MessageHeader header, MessageSignatureData signature, byte[] bodyDigest) Stores the status of verifying the header.verify(SignedMessage message)
-
Method Details
-
method_45057
- Mappings:
Namespace Name Mixin selector official aLsg;a(Lsg$b;)Lsg;intermediary method_45057Lnet/minecraft/class_7615;method_45057(Lnet/minecraft/class_7615$class_7646;)Lnet/minecraft/class_7615;named method_45057Lnet/minecraft/network/message/MessageVerifier;method_45057(Lnet/minecraft/network/message/MessageVerifier$class_7646;)Lnet/minecraft/network/message/MessageVerifier;
-
create
- Mappings:
Namespace Name Mixin selector official aLsg;a(Lbud;Z)Lsg;intermediary method_44885Lnet/minecraft/class_7615;method_44885(Lnet/minecraft/class_7428;Z)Lnet/minecraft/class_7615;named createLnet/minecraft/network/message/MessageVerifier;create(Lnet/minecraft/network/encryption/PlayerPublicKey;Z)Lnet/minecraft/network/message/MessageVerifier;
-
storeHeaderVerification
MessageVerifier.class_7646 storeHeaderVerification(MessageHeader header, MessageSignatureData signature, byte[] bodyDigest) Stores the status of verifying the header.Clients can receive only the message header instead of the whole message. This allows the chain to reference such messages. Since no actual content is received, this does not return the verification status.
- Mappings:
Namespace Name Mixin selector official aLsg;a(Lsf;Lrx;[B)Lsg$b;intermediary method_44887Lnet/minecraft/class_7615;method_44887(Lnet/minecraft/class_7614;Lnet/minecraft/class_7469;[B)Lnet/minecraft/class_7615$class_7646;named storeHeaderVerificationLnet/minecraft/network/message/MessageVerifier;storeHeaderVerification(Lnet/minecraft/network/message/MessageHeader;Lnet/minecraft/network/message/MessageSignatureData;[B)Lnet/minecraft/network/message/MessageVerifier$class_7646;
-
verify
- Mappings:
Namespace Name Mixin selector official aLsg;a(Lsb;)Lsg$b;intermediary method_44886Lnet/minecraft/class_7615;method_44886(Lnet/minecraft/class_7471;)Lnet/minecraft/class_7615$class_7646;named verifyLnet/minecraft/network/message/MessageVerifier;verify(Lnet/minecraft/network/message/SignedMessage;)Lnet/minecraft/network/message/MessageVerifier$class_7646;
-