Record Class SessionStale
java.lang.Object
java.lang.Record
com.svenruppert.jsentinel.audit.SessionStale
- Record Components:
timestamp- UTC creation time, nevernullsubjectId- subject identifier, never blanksessionId- session identifier, ornullif the adapter does not track session idsroute- navigation route / REST path that triggered the check, ornullsnapshotVersion- value captured when the session was openedcurrentVersion- subject's current security version at check time; must differ fromsnapshotVersion
- All Implemented Interfaces:
AuditEvent
public record SessionStale(Instant timestamp, String subjectId, String sessionId, String route, long snapshotVersion, long currentVersion)
extends Record
implements AuditEvent
Emitted when a request was refused because the session's
security-version snapshot no longer matches the subject's
current version. Carries both values so a SIEM can pivot on
the delta (admin revoked a role, password changed, …) without
parsing free-form reason strings.
Fired by the security-vaadin / security-rest interceptors
before the authorization step (Phase 4c of the V00.70 roadmap)
and by callers of
com.svenruppert.jsentinel.session.JSentinelVersionEnforcer.
-
Constructor Summary
ConstructorsConstructorDescriptionSessionStale(Instant timestamp, String subjectId, String sessionId, String route, long snapshotVersion, long currentVersion) Validates the record components. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thecurrentVersionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.route()Returns the value of therouterecord component.Returns the value of thesessionIdrecord component.longReturns the value of thesnapshotVersionrecord component.Returns the value of thesubjectIdrecord component.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SessionStale
-
-
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. -
timestamp
Returns the value of thetimestamprecord component.- Specified by:
timestampin interfaceAuditEvent- Returns:
- the value of the
timestamprecord component
-
subjectId
-
sessionId
-
route
-
snapshotVersion
public long snapshotVersion()Returns the value of thesnapshotVersionrecord component.- Returns:
- the value of the
snapshotVersionrecord component
-
currentVersion
public long currentVersion()Returns the value of thecurrentVersionrecord component.- Returns:
- the value of the
currentVersionrecord component
-