2022-06-01 13:39:22 -04:00
|
|
|
CLASS net/minecraft/class_7469 net/minecraft/network/message/MessageSignature
|
|
|
|
COMMENT A signature for chat messages and message command arguments, consisting
|
|
|
|
COMMENT of the sender, the timestamp, and the signature data.
|
2022-05-17 05:56:35 -04:00
|
|
|
FIELD comp_799 timestamp Ljava/time/Instant;
|
|
|
|
METHOD comp_799 timestamp ()Ljava/time/Instant;
|
2022-07-06 11:47:34 -04:00
|
|
|
METHOD method_43859 none (Ljava/util/UUID;)Lnet/minecraft/class_7469;
|
2022-05-18 12:58:03 -04:00
|
|
|
METHOD method_43860 verify (Lnet/minecraft/class_7500;Ljava/lang/String;)Z
|
2022-05-17 05:56:35 -04:00
|
|
|
COMMENT {@return whether {@code message} can be verified with this signature}
|
|
|
|
COMMENT
|
|
|
|
COMMENT @throws SignatureException when verifying fails
|
2022-05-23 08:07:30 -04:00
|
|
|
ARG 1 verifier
|
2022-05-12 09:36:43 -04:00
|
|
|
ARG 2 message
|
2022-05-17 05:56:35 -04:00
|
|
|
COMMENT the message to verify
|
2022-05-18 12:58:03 -04:00
|
|
|
METHOD method_43861 verify (Lnet/minecraft/class_7500;Lnet/minecraft/class_2561;)Z
|
2022-05-17 05:56:35 -04:00
|
|
|
COMMENT {@return whether {@code message} can be verified with this signature}
|
2022-05-23 08:07:30 -04:00
|
|
|
ARG 1 verifier
|
|
|
|
ARG 2 message
|
2022-05-18 12:58:03 -04:00
|
|
|
METHOD method_43862 updateSignature (Lnet/minecraft/class_7498$class_7499;Lnet/minecraft/class_2561;Ljava/util/UUID;Ljava/time/Instant;J)V
|
2022-05-23 08:07:30 -04:00
|
|
|
COMMENT Updates {@code updater} with the passed parameters.
|
2022-05-17 05:56:35 -04:00
|
|
|
COMMENT
|
|
|
|
COMMENT @implNote The data to be signed is {@code salt}, followed by big-endian ordered
|
|
|
|
COMMENT {@code uuid}, followed by {@code time} as seconds from the UTC epoch, followed by
|
|
|
|
COMMENT UTF-8 encoded {@code message} bytes.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @throws SignatureException when updating signature fails
|
|
|
|
COMMENT
|
2022-05-23 08:07:30 -04:00
|
|
|
COMMENT @see ChatMessageSigner#sign(net.minecraft.network.encryption.Signer, Text)
|
2022-05-17 05:56:35 -04:00
|
|
|
COMMENT @see #verify
|
2022-05-23 08:07:30 -04:00
|
|
|
ARG 0 updater
|
2022-05-12 09:36:43 -04:00
|
|
|
ARG 1 message
|
|
|
|
ARG 2 sender
|
|
|
|
ARG 3 time
|
|
|
|
ARG 4 salt
|
|
|
|
METHOD method_43863 toByteArray (Lnet/minecraft/class_2561;)[B
|
|
|
|
ARG 0 message
|
2022-05-17 05:56:35 -04:00
|
|
|
METHOD method_44124 canVerify ()Z
|
|
|
|
COMMENT {@return whether the signature can be verified}
|
|
|
|
COMMENT
|
2022-05-23 08:07:30 -04:00
|
|
|
COMMENT <p>Verifiable signature is not the same as verified signature. A signatures is verifiable
|
|
|
|
COMMENT if it has proper sender UUID and signature data. However, it can still fail to verify.
|
|
|
|
METHOD method_44308 (Lnet/minecraft/class_2561;Lnet/minecraft/class_7498$class_7499;)V
|
|
|
|
ARG 2 updater
|