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 - official - byr$a- intermediary - net/minecraft/class_7428$class_7443- named - net/minecraft/network/encryption/PlayerPublicKey$PublicKeyData- official - b- intermediary - comp_769- named - expiresAt- official - c- intermediary - comp_770- named - key- official - d- intermediary - comp_771- named - keySignature
- 
Field SummaryFieldsModifier 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 SummaryConstructors
- 
Method SummaryModifier 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- 
expiresAtThe field for theexpiresAtrecord component.
- 
keyThe field for thekeyrecord component.
- 
keySignatureprivate final byte[] keySignatureThe field for thekeySignaturerecord component.
- 
KEY_SIGNATURE_MAX_SIZEprivate static final int KEY_SIGNATURE_MAX_SIZE- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - e- Lbyr$a;e:I- intermediary - field_39309- Lnet/minecraft/class_7428$class_7443;field_39309:I- named - KEY_SIGNATURE_MAX_SIZE- Lnet/minecraft/network/encryption/PlayerPublicKey$PublicKeyData;KEY_SIGNATURE_MAX_SIZE:I
 
- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbyr$a;a:Lcom/mojang/serialization/Codec;- intermediary - field_39119- Lnet/minecraft/class_7428$class_7443;field_39119:Lcom/mojang/serialization/Codec;- named - CODEC- Lnet/minecraft/network/encryption/PlayerPublicKey$PublicKeyData;CODEC:Lcom/mojang/serialization/Codec;
 
 
- 
- 
Constructor Details- 
PublicKeyData- Mappings:
- Namespace - Name - Mixin selector - official - <init>- Lbyr$a;<init>(Lsf;)V- intermediary - <init>- Lnet/minecraft/class_7428$class_7443;<init>(Lnet/minecraft/class_2540;)V- named - <init>- Lnet/minecraft/network/encryption/PlayerPublicKey$PublicKeyData;<init>(Lnet/minecraft/network/PacketByteBuf;)V
 
- 
PublicKeyData
 
- 
- 
Method Details- 
write- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbyr$a;a(Lsf;)V- intermediary - method_44011- Lnet/minecraft/class_7428$class_7443;method_44011(Lnet/minecraft/class_2540;)V- named - write- Lnet/minecraft/network/encryption/PlayerPublicKey$PublicKeyData;write(Lnet/minecraft/network/PacketByteBuf;)V
 
- 
verifyKey- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbyr$a;a(Lapj;Ljava/util/UUID;)Z- intermediary - method_44205- Lnet/minecraft/class_7428$class_7443;method_44205(Lnet/minecraft/class_7500;Ljava/util/UUID;)Z- named - verifyKey- Lnet/minecraft/network/encryption/PlayerPublicKey$PublicKeyData;verifyKey(Lnet/minecraft/network/encryption/SignatureVerifier;Ljava/util/UUID;)Z
 
- 
toSerializedString- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbyr$a;a(Ljava/util/UUID;)[B- intermediary - method_43702- Lnet/minecraft/class_7428$class_7443;method_43702(Ljava/util/UUID;)[B- named - toSerializedString- Lnet/minecraft/network/encryption/PlayerPublicKey$PublicKeyData;toSerializedString(Ljava/util/UUID;)[B
 
- 
isExpiredpublic boolean isExpired()- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbyr$a;a()Z- intermediary - method_43704- Lnet/minecraft/class_7428$class_7443;method_43704()Z- named - isExpired- Lnet/minecraft/network/encryption/PlayerPublicKey$PublicKeyData;isExpired()Z
 
- 
isExpiredReturns 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 - official - a- Lbyr$a;a(Ljava/time/Duration;)Z- intermediary - method_45103- Lnet/minecraft/class_7428$class_7443;method_45103(Ljava/time/Duration;)Z- named - isExpired- Lnet/minecraft/network/encryption/PlayerPublicKey$PublicKeyData;isExpired(Ljava/time/Duration;)Z
 
- 
equalsIndicates 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).
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
expiresAtReturns the value of theexpiresAtrecord component.- Returns:
- the value of the expiresAtrecord component
 
- 
keyReturns the value of thekeyrecord component.- Returns:
- the value of the keyrecord component
 
- 
keySignaturepublic byte[] keySignature()Returns the value of thekeySignaturerecord component.- Returns:
- the value of the keySignaturerecord component
 
 
-