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 se
intermediary net/minecraft/class_7615
named net/minecraft/network/message/MessageVerifier
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic MessageVerifier
create
(@Nullable PlayerPublicKey publicKey) void
storeHeaderVerification
(MessageHeader header, MessageSignatureData signature, byte[] bodyDigest) Stores the status of verifying the header.boolean
verify
(SignedMessage message)
-
Field Details
-
field_39897
- Mappings:
Namespace Name Mixin selector official a
Lse;a:Lse;
intermediary field_39897
Lnet/minecraft/class_7615;field_39897:Lnet/minecraft/class_7615;
named field_39897
Lnet/minecraft/network/message/MessageVerifier;field_39897:Lnet/minecraft/network/message/MessageVerifier;
-
-
Method Details
-
create
- Mappings:
Namespace Name Mixin selector official a
Lse;a(Lbua;)Lse;
intermediary method_44885
Lnet/minecraft/class_7615;method_44885(Lnet/minecraft/class_7428;)Lnet/minecraft/class_7615;
named create
Lnet/minecraft/network/message/MessageVerifier;create(Lnet/minecraft/network/encryption/PlayerPublicKey;)Lnet/minecraft/network/message/MessageVerifier;
-
storeHeaderVerification
void 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 a
Lse;a(Lsd;Lrw;[B)V
intermediary method_44887
Lnet/minecraft/class_7615;method_44887(Lnet/minecraft/class_7614;Lnet/minecraft/class_7469;[B)V
named storeHeaderVerification
Lnet/minecraft/network/message/MessageVerifier;storeHeaderVerification(Lnet/minecraft/network/message/MessageHeader;Lnet/minecraft/network/message/MessageSignatureData;[B)V
-
verify
- Mappings:
Namespace Name Mixin selector official a
Lse;a(Lsa;)Z
intermediary method_44886
Lnet/minecraft/class_7615;method_44886(Lnet/minecraft/class_7471;)Z
named verify
Lnet/minecraft/network/message/MessageVerifier;verify(Lnet/minecraft/network/message/SignedMessage;)Z
-