Record Class RefreshSessionStore.NewSession
java.lang.Object
java.lang.Record
io.leandev.appfuse.security.auth.RefreshSessionStore.NewSession
- Enclosing interface:
RefreshSessionStore
public static record RefreshSessionStore.NewSession(UUID sessionId, String subject, String tenantId, String actorSubject, String credentialHash, String credentialSelectorHash, boolean remembered, Duration idleTimeout, Instant idleExpiresAt, Instant createdAt, SessionPolicyBinding policyBinding)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionNewSession(UUID sessionId, String subject, String tenantId, String actorSubject, String credentialHash, String credentialSelectorHash, boolean remembered, Duration idleTimeout, Instant idleExpiresAt, Instant createdAt) NewSession(UUID sessionId, String subject, String tenantId, String actorSubject, String credentialHash, String credentialSelectorHash, boolean remembered, Duration idleTimeout, Instant idleExpiresAt, Instant createdAt, SessionPolicyBinding policyBinding) Creates an instance of aNewSessionrecord 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.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 thepolicyBindingrecord component.booleanReturns the value of therememberedrecord 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.
-
Constructor Details
-
NewSession
public NewSession(UUID sessionId, String subject, String tenantId, String actorSubject, String credentialHash, String credentialSelectorHash, boolean remembered, Duration idleTimeout, Instant idleExpiresAt, Instant createdAt, SessionPolicyBinding policyBinding) Creates an instance of aNewSessionrecord 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 componentremembered- the value for therememberedrecord componentidleTimeout- the value for theidleTimeoutrecord componentidleExpiresAt- the value for theidleExpiresAtrecord componentcreatedAt- the value for thecreatedAtrecord componentpolicyBinding- the value for thepolicyBindingrecord component
-
NewSession
-
-
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. 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
-
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
-
policyBinding
Returns the value of thepolicyBindingrecord component.- Returns:
- the value of the
policyBindingrecord component
-