Record Class KeyPairResponse1_19_0
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.features.networking.legacy_chat_signature.KeyPairResponse1_19_0
public record KeyPairResponse1_19_0(com.mojang.authlib.yggdrasil.response.KeyPairResponse.KeyPair keyPair, ByteBuffer publicKeySignatureV2, ByteBuffer publicKeySignature, String expiresAt, String refreshedAfter)
extends Record
This class is part of the AuthLib, we are overwriting this class to add the
publicKeySignature field.-
Constructor Summary
ConstructorsConstructorDescriptionKeyPairResponse1_19_0(com.mojang.authlib.yggdrasil.response.KeyPairResponse.KeyPair keyPair, ByteBuffer publicKeySignatureV2, ByteBuffer publicKeySignature, String expiresAt, String refreshedAfter) Creates an instance of aKeyPairResponse1_19_0record class. -
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.com.mojang.authlib.yggdrasil.response.KeyPairResponse.KeyPairkeyPair()Returns the value of thekeyPairrecord component.Returns the value of thepublicKeySignaturerecord component.Returns the value of thepublicKeySignatureV2record component.Returns the value of therefreshedAfterrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
KeyPairResponse1_19_0
public KeyPairResponse1_19_0(com.mojang.authlib.yggdrasil.response.KeyPairResponse.KeyPair keyPair, ByteBuffer publicKeySignatureV2, ByteBuffer publicKeySignature, String expiresAt, String refreshedAfter) Creates an instance of aKeyPairResponse1_19_0record class.- Parameters:
keyPair- the value for thekeyPairrecord componentpublicKeySignatureV2- the value for thepublicKeySignatureV2record componentpublicKeySignature- the value for thepublicKeySignaturerecord componentexpiresAt- the value for theexpiresAtrecord componentrefreshedAfter- the value for therefreshedAfterrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
keyPair
public com.mojang.authlib.yggdrasil.response.KeyPairResponse.KeyPair keyPair()Returns the value of thekeyPairrecord component.- Returns:
- the value of the
keyPairrecord component
-
publicKeySignatureV2
Returns the value of thepublicKeySignatureV2record component.- Returns:
- the value of the
publicKeySignatureV2record component
-
publicKeySignature
Returns the value of thepublicKeySignaturerecord component.- Returns:
- the value of the
publicKeySignaturerecord component
-
expiresAt
Returns the value of theexpiresAtrecord component.- Returns:
- the value of the
expiresAtrecord component
-
refreshedAfter
Returns the value of therefreshedAfterrecord component.- Returns:
- the value of the
refreshedAfterrecord component
-