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-keySignature-
- Enclosing class:
PlayerPublicKey
public static record PlayerPublicKey.PublicKeyData(Instant expiresAt, PublicKey key, byte[] keySignature)
extends Record
- Mappings:
Namespace Name named net/minecraft/network/encryption/PlayerPublicKey$PublicKeyDataintermediary net/minecraft/class_7428$class_7443official cna$anamed expiresAtintermediary comp_769official bnamed keyintermediary comp_770official cnamed keySignatureintermediary comp_771official d
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<PlayerPublicKey.PublicKeyData> private final InstantThe field for theexpiresAtrecord component.private final PublicKeyThe field for thekeyrecord component.private static final intprivate final byte[]The field for thekeySignaturerecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates 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.booleanbooleanReturns whether the key is expired, with the provided grace period taken into account.key()Returns the value of thekeyrecord component.byte[]Returns the value of thekeySignaturerecord component.private byte[]toSerializedString(UUID playerUuid) final StringtoString()Returns a string representation of this record class.(package private) booleanverifyKey(SignatureVerifier servicesSignatureVerifier, UUID playerUuid) voidwrite(PacketByteBuf buf)
-
Field Details
-
expiresAt
The field for theexpiresAtrecord component. -
key
The field for thekeyrecord component. -
keySignature
private final byte[] keySignatureThe field for thekeySignaturerecord component. -
KEY_SIGNATURE_MAX_SIZE
private static final int KEY_SIGNATURE_MAX_SIZE- See Also:
- Mappings:
Namespace Name Mixin selector named KEY_SIGNATURE_MAX_SIZELnet/minecraft/network/encryption/PlayerPublicKey$PublicKeyData;KEY_SIGNATURE_MAX_SIZE:Iintermediary field_39309Lnet/minecraft/class_7428$class_7443;field_39309:Iofficial eLcna$a;e:I
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/network/encryption/PlayerPublicKey$PublicKeyData;CODEC:Lcom/mojang/serialization/Codec;intermediary field_39119Lnet/minecraft/class_7428$class_7443;field_39119:Lcom/mojang/serialization/Codec;official aLcna$a;a:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
PublicKeyData
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/network/encryption/PlayerPublicKey$PublicKeyData;<init>(Lnet/minecraft/network/PacketByteBuf;)Vintermediary <init>Lnet/minecraft/class_7428$class_7443;<init>(Lnet/minecraft/class_2540;)Vofficial <init>Lcna$a;<init>(Lvw;)V
-
PublicKeyData
-
-
Method Details
-
write
- Mappings:
Namespace Name Mixin selector named writeLnet/minecraft/network/encryption/PlayerPublicKey$PublicKeyData;write(Lnet/minecraft/network/PacketByteBuf;)Vintermediary method_44011Lnet/minecraft/class_7428$class_7443;method_44011(Lnet/minecraft/class_2540;)Vofficial aLcna$a;a(Lvw;)V
-
verifyKey
- Mappings:
Namespace Name Mixin selector named verifyKeyLnet/minecraft/network/encryption/PlayerPublicKey$PublicKeyData;verifyKey(Lnet/minecraft/network/encryption/SignatureVerifier;Ljava/util/UUID;)Zintermediary method_44205Lnet/minecraft/class_7428$class_7443;method_44205(Lnet/minecraft/class_7500;Ljava/util/UUID;)Zofficial aLcna$a;a(Lazb;Ljava/util/UUID;)Z
-
toSerializedString
- Mappings:
Namespace Name Mixin selector named toSerializedStringLnet/minecraft/network/encryption/PlayerPublicKey$PublicKeyData;toSerializedString(Ljava/util/UUID;)[Bintermediary method_43702Lnet/minecraft/class_7428$class_7443;method_43702(Ljava/util/UUID;)[Bofficial aLcna$a;a(Ljava/util/UUID;)[B
-
isExpired
public boolean isExpired()- Mappings:
Namespace Name Mixin selector named isExpiredLnet/minecraft/network/encryption/PlayerPublicKey$PublicKeyData;isExpired()Zintermediary method_43704Lnet/minecraft/class_7428$class_7443;method_43704()Zofficial aLcna$a;a()Z
-
isExpired
Returns whether the key is expired, with the provided grace period taken into account.- Returns:
- whether the key is expired, with the provided grace period taken into account
- Mappings:
Namespace Name Mixin selector named isExpiredLnet/minecraft/network/encryption/PlayerPublicKey$PublicKeyData;isExpired(Ljava/time/Duration;)Zintermediary method_45103Lnet/minecraft/class_7428$class_7443;method_45103(Ljava/time/Duration;)Zofficial aLcna$a;a(Ljava/time/Duration;)Z
-
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). -
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. -
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
-
keySignature
public byte[] keySignature()Returns the value of thekeySignaturerecord component.- Returns:
- the value of the
keySignaturerecord component
-