Record Class RefreshSessionStore.Session
java.lang.Object
java.lang.Record
io.leandev.appfuse.security.auth.RefreshSessionStore.Session
- Enclosing interface:
RefreshSessionStore
public static record RefreshSessionStore.Session(UUID sessionId, String subject, String tenantId, String actorSubject, String credentialHash, String credentialSelectorHash, long generation, boolean remembered, Duration idleTimeout, Instant idleExpiresAt, Instant createdAt, Instant lastRefreshedAt, Instant revokedAt, String revokeReason, long version, SessionPolicyBinding policyBinding)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSession(UUID sessionId, String subject, String tenantId, String actorSubject, String credentialHash, String credentialSelectorHash, long generation, boolean remembered, Duration idleTimeout, Instant idleExpiresAt, Instant createdAt, Instant lastRefreshedAt, Instant revokedAt, String revokeReason, long version) Session(UUID sessionId, String subject, String tenantId, String actorSubject, String credentialHash, String credentialSelectorHash, long generation, boolean remembered, Duration idleTimeout, Instant idleExpiresAt, Instant createdAt, Instant lastRefreshedAt, Instant revokedAt, String revokeReason, long version, SessionPolicyBinding policyBinding) Creates an instance of aSessionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactorSubjectrecord component.Returns the value of thecreatedAtrecord component.Returns the value of thecredentialHashrecord component.Returns the value of thecredentialSelectorHashrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanlongReturns the value of thegenerationrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theidleExpiresAtrecord component.Returns the value of theidleTimeoutrecord component.Returns the value of thelastRefreshedAtrecord component.Returns the value of thepolicyBindingrecord component.booleanpolicyExpiredAt(Instant now) booleanReturns the value of therememberedrecord component.booleanrevoked()Returns the value of therevokedAtrecord component.Returns the value of therevokeReasonrecord component.Returns the value of thesessionIdrecord component.subject()Returns the value of thesubjectrecord component.tenantId()Returns the value of thetenantIdrecord component.final StringtoString()Returns a string representation of this record class.longversion()Returns the value of theversionrecord component.
-
Constructor Details
-
Session
public Session(UUID sessionId, String subject, String tenantId, String actorSubject, String credentialHash, String credentialSelectorHash, long generation, boolean remembered, Duration idleTimeout, Instant idleExpiresAt, Instant createdAt, Instant lastRefreshedAt, Instant revokedAt, String revokeReason, long version, SessionPolicyBinding policyBinding) Creates an instance of aSessionrecord class.- Parameters:
sessionId- the value for thesessionIdrecord componentsubject- the value for thesubjectrecord componenttenantId- the value for thetenantIdrecord componentactorSubject- the value for theactorSubjectrecord componentcredentialHash- the value for thecredentialHashrecord componentcredentialSelectorHash- the value for thecredentialSelectorHashrecord componentgeneration- the value for thegenerationrecord componentremembered- the value for therememberedrecord componentidleTimeout- the value for theidleTimeoutrecord componentidleExpiresAt- the value for theidleExpiresAtrecord componentcreatedAt- the value for thecreatedAtrecord componentlastRefreshedAt- the value for thelastRefreshedAtrecord componentrevokedAt- the value for therevokedAtrecord componentrevokeReason- the value for therevokeReasonrecord componentversion- the value for theversionrecord componentpolicyBinding- the value for thepolicyBindingrecord component
-
Session
public Session(UUID sessionId, String subject, String tenantId, String actorSubject, String credentialHash, String credentialSelectorHash, long generation, boolean remembered, Duration idleTimeout, Instant idleExpiresAt, Instant createdAt, Instant lastRefreshedAt, Instant revokedAt, String revokeReason, long version)
-
-
Method Details
-
revoked
public boolean revoked() -
expiredAt
-
policyExpiredAt
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
sessionId
Returns the value of thesessionIdrecord component.- Returns:
- the value of the
sessionIdrecord component
-
subject
Returns the value of thesubjectrecord component.- Returns:
- the value of the
subjectrecord component
-
tenantId
Returns the value of thetenantIdrecord component.- Returns:
- the value of the
tenantIdrecord component
-
actorSubject
Returns the value of theactorSubjectrecord component.- Returns:
- the value of the
actorSubjectrecord component
-
credentialHash
Returns the value of thecredentialHashrecord component.- Returns:
- the value of the
credentialHashrecord component
-
credentialSelectorHash
Returns the value of thecredentialSelectorHashrecord component.- Returns:
- the value of the
credentialSelectorHashrecord component
-
generation
public long generation()Returns the value of thegenerationrecord component.- Returns:
- the value of the
generationrecord component
-
remembered
public boolean remembered()Returns the value of therememberedrecord component.- Returns:
- the value of the
rememberedrecord component
-
idleTimeout
Returns the value of theidleTimeoutrecord component.- Returns:
- the value of the
idleTimeoutrecord component
-
idleExpiresAt
Returns the value of theidleExpiresAtrecord component.- Returns:
- the value of the
idleExpiresAtrecord component
-
createdAt
Returns the value of thecreatedAtrecord component.- Returns:
- the value of the
createdAtrecord component
-
lastRefreshedAt
Returns the value of thelastRefreshedAtrecord component.- Returns:
- the value of the
lastRefreshedAtrecord component
-
revokedAt
Returns the value of therevokedAtrecord component.- Returns:
- the value of the
revokedAtrecord component
-
revokeReason
Returns the value of therevokeReasonrecord component.- Returns:
- the value of the
revokeReasonrecord component
-
version
public long version()Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
policyBinding
Returns the value of thepolicyBindingrecord component.- Returns:
- the value of the
policyBindingrecord component
-