Package com.svenruppert.jsentinel.session
package com.svenruppert.jsentinel.session
-
ClassDescriptionIn-memory
JSentinelVersionStorebacked by aConcurrentHashMap.In-memorySessionStorebacked by aLinkedHashMapsoInMemorySessionStore.findBySubject(TenantId, SubjectId)returns insertion-ordered results.Monotonically-increasing version of a subject's security-relevant state (roles, permissions, password, …).Adapter-neutral security-version drift detector.Adapter-neutral enforcement layer on top ofJSentinelVersionCheck.Sealed outcome of anJSentinelVersionEnforcer.enforce(SubjectId, TenantId, JSentinelVersion, String, String)call.The request continues — versions match.The request must be refused — session security version no longer matches.Composite key under whichJSentinelVersionStoretracks the currentJSentinelVersionof a subject.Result of aJSentinelVersionCheck.check(JSentinelVersionKey, JSentinelVersion)call against asession snapshot.Session is still current — its snapshot matches the subject's stored version.Session has drifted — its snapshot differs from the subject's stored version.Persistent counter store forJSentinelVersionperJSentinelVersionKey.DefaultSessionPolicy— every navigation continues, login and logout do nothing.Adapter-neutral session view for theSessionPolicy.Outcome of aSessionPolicy.beforeNavigation(SessionContext)decision.The navigation may proceed unchanged.The session must be invalidated.The subject must re-authenticate.Strongly-typed identifier of an authenticated session.Adapter-neutral query input forSessionPolicy.evaluate(SessionMetadata).Pluggable session policy.Outcome ofSessionPolicy.evaluate(SessionMetadata).The session is older than the configured absolute lifetime.The session may continue.The session was idle longer than the configured idle timeout.Persistent representation of a single authenticated session.Lifecycle state of aSessionRecord.Store forSessionRecords, keyed onSessionId.MinimalSessionPolicywith idle timeout, absolute lifetime, and optional session-id rotation after login.Tunable thresholds.