Class InMemorySessionStore

java.lang.Object
org.apache.juneau.rest.server.auth.oidc.rp.InMemorySessionStore
All Implemented Interfaces:
SessionStore

public class InMemorySessionStore extends Object implements SessionStore
In-memory SessionStore backed by a bounded-LRU map, indexed by sub and sid so it can satisfy back-channel logout.

This is the simpler single-instance / development option. It is lost on restart and breaks under horizontal scaling without sticky sessions; for production multi-instance deployments use SignedCookieSessionStore (stateless, the documented default) or a caller-supplied distributed store.

Eviction is the conjunction of a size cap (LRU) and per-session TTL (an expired session is treated as a miss and removed on lookup). Because it retains sessions server-side, it supports invalidateBySubject(String) and invalidateBySessionId(String).

Since:
10.0.0