Package net.minecraft.network.encryption
Record Class ChatMessageSignature
java.lang.Object
java.lang.Record
net.minecraft.network.encryption.ChatMessageSignature
- Record Components:
sender-timeStamp-saltSignature-
public record ChatMessageSignature(UUID sender, Instant timeStamp, NetworkEncryptionUtils.SignatureData saltSignature)
extends Record
- Mappings:
Namespace Name official rqintermediary net/minecraft/class_7469named net/minecraft/network/encryption/ChatMessageSignatureofficial aintermediary comp_798named senderofficial bintermediary comp_799named timeStampofficial cintermediary comp_800named saltSignature
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final NetworkEncryptionUtils.SignatureDataThe field for thesaltSignaturerecord component.private final UUIDThe field for thesenderrecord component.private final InstantThe field for thetimeStamprecord component. -
Constructor Summary
ConstructorsConstructorDescriptionChatMessageSignature(UUID uUID, Instant instant, NetworkEncryptionUtils.SignatureData signatureData) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanstatic ChatMessageSignaturenone()Returns the value of thesaltSignaturerecord component.sender()Returns the value of thesenderrecord component.Returns the value of thetimeStamprecord component.private static byte[]toByteArray(Text message) final StringtoString()Returns a string representation of this record class.static voidupdateSignature(Signature signature, Text message, UUID sender, Instant time, long salt) booleanboolean
-
Field Details
-
sender
The field for thesenderrecord component. -
timeStamp
The field for thetimeStamprecord component. -
saltSignature
The field for thesaltSignaturerecord component.
-
-
Constructor Details
-
ChatMessageSignature
public ChatMessageSignature(UUID uUID, Instant instant, NetworkEncryptionUtils.SignatureData signatureData)
-
-
Method Details
-
none
- Mappings:
Namespace Name Mixin selector official aLrq;a()Lrq;intermediary method_43859Lnet/minecraft/class_7469;method_43859()Lnet/minecraft/class_7469;named noneLnet/minecraft/network/encryption/ChatMessageSignature;none()Lnet/minecraft/network/encryption/ChatMessageSignature;
-
verify
- Throws:
SignatureException- Mappings:
Namespace Name Mixin selector official aLrq;a(Ljava/security/Signature;Lrl;)Zintermediary method_43861Lnet/minecraft/class_7469;method_43861(Ljava/security/Signature;Lnet/minecraft/class_2561;)Znamed verifyLnet/minecraft/network/encryption/ChatMessageSignature;verify(Ljava/security/Signature;Lnet/minecraft/text/Text;)Z
-
verify
- Throws:
SignatureException- Mappings:
Namespace Name Mixin selector official aLrq;a(Ljava/security/Signature;Ljava/lang/String;)Zintermediary method_43860Lnet/minecraft/class_7469;method_43860(Ljava/security/Signature;Ljava/lang/String;)Znamed verifyLnet/minecraft/network/encryption/ChatMessageSignature;verify(Ljava/security/Signature;Ljava/lang/String;)Z
-
updateSignature
public static void updateSignature(Signature signature, Text message, UUID sender, Instant time, long salt) throws SignatureException - Throws:
SignatureException- Mappings:
Namespace Name Mixin selector official aLrq;a(Ljava/security/Signature;Lrl;Ljava/util/UUID;Ljava/time/Instant;J)Vintermediary method_43862Lnet/minecraft/class_7469;method_43862(Ljava/security/Signature;Lnet/minecraft/class_2561;Ljava/util/UUID;Ljava/time/Instant;J)Vnamed updateSignatureLnet/minecraft/network/encryption/ChatMessageSignature;updateSignature(Ljava/security/Signature;Lnet/minecraft/text/Text;Ljava/util/UUID;Ljava/time/Instant;J)V
-
toByteArray
- Mappings:
Namespace Name Mixin selector official aLrq;a(Lrl;)[Bintermediary method_43863Lnet/minecraft/class_7469;method_43863(Lnet/minecraft/class_2561;)[Bnamed toByteArrayLnet/minecraft/network/encryption/ChatMessageSignature;toByteArray(Lnet/minecraft/text/Text;)[B
-
method_44124
public boolean method_44124()- Mappings:
Namespace Name Mixin selector official bLrq;b()Zintermediary method_44124Lnet/minecraft/class_7469;method_44124()Znamed method_44124Lnet/minecraft/network/encryption/ChatMessageSignature;method_44124()Z
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
sender
Returns the value of thesenderrecord component.- Returns:
- the value of the
senderrecord component
-
timeStamp
Returns the value of thetimeStamprecord component.- Returns:
- the value of the
timeStamprecord component
-
saltSignature
Returns the value of thesaltSignaturerecord component.- Returns:
- the value of the
saltSignaturerecord component
-