Package net.minecraft.network.encryption
Record Class PlayerPublicKey.PublicKeyData
java.lang.Object
java.lang.Record
net.minecraft.network.encryption.PlayerPublicKey.PublicKeyData
- Record Components:
expiresAt-key-signature-
- Enclosing class:
PlayerPublicKey
public static record PlayerPublicKey.PublicKeyData(Instant expiresAt, String key, String signature)
extends Record
- Mappings:
Namespace Name official bsi$aintermediary net/minecraft/class_7428$class_7443named net/minecraft/network/encryption/PlayerPublicKey$PublicKeyDataofficial bintermediary comp_769named expiresAtofficial cintermediary comp_770named keyofficial dintermediary comp_771named signature
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<PlayerPublicKey.PublicKeyData>private final InstantThe field for theexpiresAtrecord component.private final StringThe field for thekeyrecord component.private final StringThe field for thesignaturerecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpiresAtrecord component.final inthashCode()Returns a hash code value for this object.booleankey()Returns the value of thekeyrecord component.Returns the value of thesignaturerecord component.com.mojang.authlib.properties.Propertyfinal StringtoString()Returns a string representation of this record class.
-
Field Details
-
expiresAt
The field for theexpiresAtrecord component. -
key
The field for thekeyrecord component. -
signature
The field for thesignaturerecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector official aLbsi$a;a:Lcom/mojang/serialization/Codec;intermediary field_39119Lnet/minecraft/class_7428$class_7443;field_39119:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/network/encryption/PlayerPublicKey$PublicKeyData;CODEC:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
PublicKeyData
-
-
Method Details
-
toProperty
public com.mojang.authlib.properties.Property toProperty()- Mappings:
Namespace Name Mixin selector official aLbsi$a;a()Lcom/mojang/authlib/properties/Property;intermediary method_43700Lnet/minecraft/class_7428$class_7443;method_43700()Lcom/mojang/authlib/properties/Property;named toPropertyLnet/minecraft/network/encryption/PlayerPublicKey$PublicKeyData;toProperty()Lcom/mojang/authlib/properties/Property;
-
toSerializedString
- Mappings:
Namespace Name Mixin selector official bLbsi$a;b()Ljava/lang/String;intermediary method_43702Lnet/minecraft/class_7428$class_7443;method_43702()Ljava/lang/String;named toSerializedStringLnet/minecraft/network/encryption/PlayerPublicKey$PublicKeyData;toSerializedString()Ljava/lang/String;
-
decodeKey
- Throws:
NetworkEncryptionException- Mappings:
Namespace Name Mixin selector official cLbsi$a;c()Ljava/security/PublicKey;intermediary method_43703Lnet/minecraft/class_7428$class_7443;method_43703()Ljava/security/PublicKey;named decodeKeyLnet/minecraft/network/encryption/PlayerPublicKey$PublicKeyData;decodeKey()Ljava/security/PublicKey;
-
isExpired
public boolean isExpired()- Mappings:
Namespace Name Mixin selector official dLbsi$a;d()Zintermediary method_43704Lnet/minecraft/class_7428$class_7443;method_43704()Znamed isExpiredLnet/minecraft/network/encryption/PlayerPublicKey$PublicKeyData;isExpired()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). -
expiresAt
Returns the value of theexpiresAtrecord component.- Returns:
- the value of the
expiresAtrecord component
-
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
signature
Returns the value of thesignaturerecord component.- Returns:
- the value of the
signaturerecord component
-