Record Class RefreshSessionStore.CredentialUse
java.lang.Object
java.lang.Record
io.leandev.appfuse.security.auth.RefreshSessionStore.CredentialUse
- Enclosing interface:
RefreshSessionStore
-
Constructor Summary
ConstructorsConstructorDescriptionCredentialUse(UUID sessionId, String currentCredentialHash, Instant usedAt, Instant nextIdleExpiresAt) Creates an instance of aCredentialUserecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecurrentCredentialHashrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thenextIdleExpiresAtrecord component.Returns the value of thesessionIdrecord component.final StringtoString()Returns a string representation of this record class.usedAt()Returns the value of theusedAtrecord component.
-
Constructor Details
-
CredentialUse
public CredentialUse(UUID sessionId, String currentCredentialHash, Instant usedAt, Instant nextIdleExpiresAt) Creates an instance of aCredentialUserecord class.- Parameters:
sessionId- the value for thesessionIdrecord componentcurrentCredentialHash- the value for thecurrentCredentialHashrecord componentusedAt- the value for theusedAtrecord componentnextIdleExpiresAt- the value for thenextIdleExpiresAtrecord 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). -
sessionId
Returns the value of thesessionIdrecord component.- Returns:
- the value of the
sessionIdrecord component
-
currentCredentialHash
Returns the value of thecurrentCredentialHashrecord component.- Returns:
- the value of the
currentCredentialHashrecord component
-
usedAt
Returns the value of theusedAtrecord component.- Returns:
- the value of the
usedAtrecord component
-
nextIdleExpiresAt
Returns the value of thenextIdleExpiresAtrecord component.- Returns:
- the value of the
nextIdleExpiresAtrecord component
-