Uses of Record Class
com.svenruppert.jsentinel.session.JSentinelVersion
Packages that use JSentinelVersion
-
Uses of JSentinelVersion in com.svenruppert.jsentinel.session
Classes in com.svenruppert.jsentinel.session that implement interfaces with type arguments of type JSentinelVersionModifier and TypeClassDescriptionfinal recordMonotonically-increasing version of a subject's security-relevant state (roles, permissions, password, …).Fields in com.svenruppert.jsentinel.session declared as JSentinelVersionModifier and TypeFieldDescriptionstatic final JSentinelVersionJSentinelVersion.INITIALInitial version (zero) — the value used when a subject is first persisted.Methods in com.svenruppert.jsentinel.session that return JSentinelVersionModifier and TypeMethodDescriptionJSentinelVersionStatus.Current.at()Returns the value of theatrecord component.InMemoryJSentinelVersionStore.current(JSentinelVersionKey key) JSentinelVersionStatus.current()JSentinelVersionStatus.Current.current()JSentinelVersionStatus.Drifted.current()Returns the value of thecurrentrecord component.JSentinelVersionStore.current(JSentinelVersionKey key) Returns the currentJSentinelVersionassociated withkey.InMemoryJSentinelVersionStore.increment(JSentinelVersionKey key) JSentinelVersionStore.increment(JSentinelVersionKey key) Atomically bumps the version forkeyby one and returns the new value.JSentinelVersion.next()Returns the next-higher version.SessionRecord.securityVersionAtLogin()Returns the value of thesecurityVersionAtLoginrecord component.JSentinelVersionStatus.Current.snapshot()JSentinelVersionStatus.Drifted.snapshot()Returns the value of thesnapshotrecord component.JSentinelVersionStatus.snapshot()Methods in com.svenruppert.jsentinel.session with parameters of type JSentinelVersionModifier and TypeMethodDescriptionJSentinelVersionCheck.check(JSentinelVersionKey key, JSentinelVersion snapshot) Comparessnapshotagainststore.current(key).intJSentinelVersion.compareTo(JSentinelVersion other) JSentinelVersionEnforcer.enforce(SubjectId subjectId, TenantId tenant, JSentinelVersion snapshot, String sessionId, String route) Runs the drift check and emits aSessionStaleaudit event on drift.Constructors in com.svenruppert.jsentinel.session with parameters of type JSentinelVersionModifierConstructorDescriptionValidates the component.Drifted(JSentinelVersion snapshot, JSentinelVersion current) Validates the components and asserts they differ.SessionRecord(SessionId sessionId, SubjectId subjectId, TenantId tenant, Instant createdAt, Instant lastActivityAt, JSentinelVersion securityVersionAtLogin, SessionStatus status) Validates the record components and normalises anulltenant toTenantId.DEFAULT.