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$PublicKeyData
intermediary net/minecraft/class_7428$class_7443
official cmo$a
named expiresAt
intermediary comp_769
official b
named key
intermediary comp_770
official c
named keySignature
intermediary comp_771
official d
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<PlayerPublicKey.PublicKeyData> private final Instant
The field for theexpiresAt
record component.private final PublicKey
The field for thekey
record component.private static final int
private final byte[]
The field for thekeySignature
record component. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Indicates whether some other object is "equal to" this one.Returns the value of theexpiresAt
record component.final int
hashCode()
Returns a hash code value for this object.boolean
boolean
Returns whether the key is expired, with the provided grace period taken into account.key()
Returns the value of thekey
record component.byte[]
Returns the value of thekeySignature
record component.private byte[]
toSerializedString
(UUID playerUuid) final String
toString()
Returns a string representation of this record class.(package private) boolean
verifyKey
(SignatureVerifier servicesSignatureVerifier, UUID playerUuid) void
write
(PacketByteBuf buf)
-
Field Details
-
expiresAt
The field for theexpiresAt
record component. -
key
The field for thekey
record component. -
keySignature
private final byte[] keySignatureThe field for thekeySignature
record component. -
KEY_SIGNATURE_MAX_SIZE
private static final int KEY_SIGNATURE_MAX_SIZE- See Also:
- Mappings:
Namespace Name Mixin selector named KEY_SIGNATURE_MAX_SIZE
Lnet/minecraft/network/encryption/PlayerPublicKey$PublicKeyData;KEY_SIGNATURE_MAX_SIZE:I
intermediary field_39309
Lnet/minecraft/class_7428$class_7443;field_39309:I
official e
Lcmo$a;e:I
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/network/encryption/PlayerPublicKey$PublicKeyData;CODEC:Lcom/mojang/serialization/Codec;
intermediary field_39119
Lnet/minecraft/class_7428$class_7443;field_39119:Lcom/mojang/serialization/Codec;
official a
Lcmo$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;)V
intermediary <init>
Lnet/minecraft/class_7428$class_7443;<init>(Lnet/minecraft/class_2540;)V
official <init>
Lcmo$a;<init>(Lvr;)V
-
PublicKeyData
-
-
Method Details
-
write
- Mappings:
Namespace Name Mixin selector named write
Lnet/minecraft/network/encryption/PlayerPublicKey$PublicKeyData;write(Lnet/minecraft/network/PacketByteBuf;)V
intermediary method_44011
Lnet/minecraft/class_7428$class_7443;method_44011(Lnet/minecraft/class_2540;)V
official a
Lcmo$a;a(Lvr;)V
-
verifyKey
- Mappings:
Namespace Name Mixin selector named verifyKey
Lnet/minecraft/network/encryption/PlayerPublicKey$PublicKeyData;verifyKey(Lnet/minecraft/network/encryption/SignatureVerifier;Ljava/util/UUID;)Z
intermediary method_44205
Lnet/minecraft/class_7428$class_7443;method_44205(Lnet/minecraft/class_7500;Ljava/util/UUID;)Z
official a
Lcmo$a;a(Layt;Ljava/util/UUID;)Z
-
toSerializedString
- Mappings:
Namespace Name Mixin selector named toSerializedString
Lnet/minecraft/network/encryption/PlayerPublicKey$PublicKeyData;toSerializedString(Ljava/util/UUID;)[B
intermediary method_43702
Lnet/minecraft/class_7428$class_7443;method_43702(Ljava/util/UUID;)[B
official a
Lcmo$a;a(Ljava/util/UUID;)[B
-
isExpired
public boolean isExpired()- Mappings:
Namespace Name Mixin selector named isExpired
Lnet/minecraft/network/encryption/PlayerPublicKey$PublicKeyData;isExpired()Z
intermediary method_43704
Lnet/minecraft/class_7428$class_7443;method_43704()Z
official a
Lcmo$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 isExpired
Lnet/minecraft/network/encryption/PlayerPublicKey$PublicKeyData;isExpired(Ljava/time/Duration;)Z
intermediary method_45103
Lnet/minecraft/class_7428$class_7443;method_45103(Ljava/time/Duration;)Z
official a
Lcmo$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 theexpiresAt
record component.- Returns:
- the value of the
expiresAt
record component
-
key
Returns the value of thekey
record component.- Returns:
- the value of the
key
record component
-
keySignature
public byte[] keySignature()Returns the value of thekeySignature
record component.- Returns:
- the value of the
keySignature
record component
-