Class JSentinelVersionCheck

java.lang.Object
com.svenruppert.jsentinel.session.JSentinelVersionCheck

@ExperimentalJSentinelApi public final class JSentinelVersionCheck extends Object
Adapter-neutral security-version drift detector.

Wraps a JSentinelVersionStore and exposes a single check method that compares a session's captured version against the subject's current version. Any inequality — including a snapshot that is ahead of the current value (legitimately produced by JSentinelVersionStore.reset(JSentinelVersionKey)) — is reported as JSentinelVersionStatus.Drifted; callers must treat drift as "session no longer authoritative" regardless of direction.

Stateless apart from the injected store; safe to share between adapters and threads.