Record Class VaadinJSentinelVersionContext.Snapshot

java.lang.Object
java.lang.Record
com.svenruppert.jsentinel.session.vaadin.VaadinJSentinelVersionContext.Snapshot
Record Components:
subjectId - authenticated subject; non-null
tenant - tenant scope; non-null
snapshot - captured version; non-null
sessionId - optional session id (may be null)
Enclosing class:
VaadinJSentinelVersionContext

public static record VaadinJSentinelVersionContext.Snapshot(com.svenruppert.jsentinel.logout.SubjectId subjectId, com.svenruppert.jsentinel.authorization.api.tenant.TenantId tenant, com.svenruppert.jsentinel.session.JSentinelVersion snapshot, String sessionId) extends Record
Per-session security state captured at login time.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Snapshot(com.svenruppert.jsentinel.logout.SubjectId subjectId, com.svenruppert.jsentinel.authorization.api.tenant.TenantId tenant, com.svenruppert.jsentinel.session.JSentinelVersion snapshot, String sessionId)
    Validates the components.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    Returns the value of the sessionId record component.
    com.svenruppert.jsentinel.session.JSentinelVersion
    Returns the value of the snapshot record component.
    com.svenruppert.jsentinel.logout.SubjectId
    Returns the value of the subjectId record component.
    com.svenruppert.jsentinel.authorization.api.tenant.TenantId
    Returns the value of the tenant record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Snapshot

      public Snapshot(com.svenruppert.jsentinel.logout.SubjectId subjectId, com.svenruppert.jsentinel.authorization.api.tenant.TenantId tenant, com.svenruppert.jsentinel.session.JSentinelVersion snapshot, String sessionId)
      Validates the components.
  • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • subjectId

      public com.svenruppert.jsentinel.logout.SubjectId subjectId()
      Returns the value of the subjectId record component.
      Returns:
      the value of the subjectId record component
    • tenant

      public com.svenruppert.jsentinel.authorization.api.tenant.TenantId tenant()
      Returns the value of the tenant record component.
      Returns:
      the value of the tenant record component
    • snapshot

      public com.svenruppert.jsentinel.session.JSentinelVersion snapshot()
      Returns the value of the snapshot record component.
      Returns:
      the value of the snapshot record component
    • sessionId

      public String sessionId()
      Returns the value of the sessionId record component.
      Returns:
      the value of the sessionId record component