Record Class VaadinJSentinelVersionContext.Snapshot
java.lang.Object
java.lang.Record
com.svenruppert.jsentinel.session.vaadin.VaadinJSentinelVersionContext.Snapshot
- Record Components:
subjectId- authenticated subject; non-nulltenant- tenant scope; non-nullsnapshot- captured version; non-nullsessionId- optional session id (may benull)
- 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 -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thesessionIdrecord component.com.svenruppert.jsentinel.session.JSentinelVersionsnapshot()Returns the value of thesnapshotrecord component.com.svenruppert.jsentinel.logout.SubjectIdReturns the value of thesubjectIdrecord component.com.svenruppert.jsentinel.authorization.api.tenant.TenantIdtenant()Returns the value of thetenantrecord component.final StringtoString()Returns a string representation of this record class.
-
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
-
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). -
subjectId
-
tenant
-
snapshot
-
sessionId
-