Record Class KeyPairResponse
java.lang.Object
java.lang.Record
com.mojang.authlib.yggdrasil.response.KeyPairResponse
public record KeyPairResponse(KeyPairResponse.KeyPair keyPair, ByteBuffer publicKeySignature, String expiresAt, String refreshedAfter)
extends Record
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for theexpiresAtrecord component.private final KeyPairResponse.KeyPairThe field for thekeyPairrecord component.private final ByteBufferThe field for thepublicKeySignaturerecord component.private final StringThe field for therefreshedAfterrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionKeyPairResponse(KeyPairResponse.KeyPair keyPair, ByteBuffer publicKeySignature, String expiresAt, String refreshedAfter) Creates an instance of aKeyPairResponserecord 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.keyPair()Returns the value of thekeyPairrecord component.Returns the value of thepublicKeySignaturerecord component.Returns the value of therefreshedAfterrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
keyPair
The field for thekeyPairrecord component. -
publicKeySignature
The field for thepublicKeySignaturerecord component. -
expiresAt
The field for theexpiresAtrecord component. -
refreshedAfter
The field for therefreshedAfterrecord component.
-
-
Constructor Details
-
KeyPairResponse
public KeyPairResponse(KeyPairResponse.KeyPair keyPair, ByteBuffer publicKeySignature, String expiresAt, String refreshedAfter) Creates an instance of aKeyPairResponserecord class.- Parameters:
keyPair- the value for thekeyPairrecord 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
Returns the value of thekeyPairrecord component.- Returns:
- the value of the
keyPairrecord 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
-