Record Class UserSessionSupportKeys.ClientProfileKeys
java.lang.Object
java.lang.Record
pro.gravit.launchserver.auth.core.interfaces.session.UserSessionSupportKeys.ClientProfileKeys
- Enclosing interface:
UserSessionSupportKeys
public static record UserSessionSupportKeys.ClientProfileKeys(PublicKey publicKey, PrivateKey privateKey, byte[] signature, long expiresAt, long refreshedAfter)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionClientProfileKeys(PublicKey publicKey, PrivateKey privateKey, byte[] signature, long expiresAt, long refreshedAfter) Creates an instance of aClientProfileKeysrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.longReturns the value of theexpiresAtrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theprivateKeyrecord component.Returns the value of thepublicKeyrecord component.longReturns the value of therefreshedAfterrecord component.byte[]Returns the value of thesignaturerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ClientProfileKeys
public ClientProfileKeys(PublicKey publicKey, PrivateKey privateKey, byte[] signature, long expiresAt, long refreshedAfter) Creates an instance of aClientProfileKeysrecord class.- Parameters:
publicKey- the value for thepublicKeyrecord componentprivateKey- the value for theprivateKeyrecord componentsignature- the value for thesignaturerecord componentexpiresAt- the value for theexpiresAtrecord componentrefreshedAfter- the value for therefreshedAfterrecord component
-
-
Method Details
-
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. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
publicKey
Returns the value of thepublicKeyrecord component.- Returns:
- the value of the
publicKeyrecord component
-
privateKey
Returns the value of theprivateKeyrecord component.- Returns:
- the value of the
privateKeyrecord component
-
signature
public byte[] signature()Returns the value of thesignaturerecord component.- Returns:
- the value of the
signaturerecord component
-
expiresAt
public long expiresAt()Returns the value of theexpiresAtrecord component.- Returns:
- the value of the
expiresAtrecord component
-
refreshedAfter
public long refreshedAfter()Returns the value of therefreshedAfterrecord component.- Returns:
- the value of the
refreshedAfterrecord component
-