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 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 a NewSession record class.
      Parameters:
      sessionId - the value for the sessionId record component
      subject - the value for the subject record component
      tenantId - the value for the tenantId record component
      actorSubject - the value for the actorSubject record component
      credentialHash - the value for the credentialHash record component
      credentialSelectorHash - the value for the credentialSelectorHash record component
      remembered - the value for the remembered record component
      idleTimeout - the value for the idleTimeout record component
      idleExpiresAt - the value for the idleExpiresAt record component
      createdAt - the value for the createdAt record component
      policyBinding - the value for the policyBinding record component
    • NewSession

      public NewSession(UUID sessionId, String subject, String tenantId, String actorSubject, String credentialHash, String credentialSelectorHash, boolean remembered, Duration idleTimeout, Instant idleExpiresAt, Instant createdAt)
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • sessionId

      public UUID sessionId()
      Returns the value of the sessionId record component.
      Returns:
      the value of the sessionId record component
    • subject

      public String subject()
      Returns the value of the subject record component.
      Returns:
      the value of the subject record component
    • tenantId

      public String tenantId()
      Returns the value of the tenantId record component.
      Returns:
      the value of the tenantId record component
    • actorSubject

      public String actorSubject()
      Returns the value of the actorSubject record component.
      Returns:
      the value of the actorSubject record component
    • credentialHash

      public String credentialHash()
      Returns the value of the credentialHash record component.
      Returns:
      the value of the credentialHash record component
    • credentialSelectorHash

      public String credentialSelectorHash()
      Returns the value of the credentialSelectorHash record component.
      Returns:
      the value of the credentialSelectorHash record component
    • remembered

      public boolean remembered()
      Returns the value of the remembered record component.
      Returns:
      the value of the remembered record component
    • idleTimeout

      public Duration idleTimeout()
      Returns the value of the idleTimeout record component.
      Returns:
      the value of the idleTimeout record component
    • idleExpiresAt

      public Instant idleExpiresAt()
      Returns the value of the idleExpiresAt record component.
      Returns:
      the value of the idleExpiresAt record component
    • createdAt

      public Instant createdAt()
      Returns the value of the createdAt record component.
      Returns:
      the value of the createdAt record component
    • policyBinding

      public SessionPolicyBinding policyBinding()
      Returns the value of the policyBinding record component.
      Returns:
      the value of the policyBinding record component