Class InMemoryLoggedOutSessionStore
- All Implemented Interfaces:
LoggedOutSessionStore
LoggedOutSessionStore that stores session IDs in memory.
A subclass can override doLogout(java.util.Set<java.lang.String>) to effectively invalidate sessions.
-
Field Summary
Fields inherited from interface net.ltgt.oidc.servlet.LoggedOutSessionStore
CONTEXT_ATTRIBUTE_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAssociates the OpenID Provider session ID with a new application's HTTP session.protected voidCan be implemented to effectively invalidate sessions.booleanisLoggedOut(SessionID sessionID) Returns whether the given session ID has been logged out.voidRecords the given session ID as having been logged out at the OpenID Provider.voidDissociates the OpenID Provider session ID from an application's HTTP session.voidNotifies the store that the application's HTTP session, associated with a given OpenID Provider session ID, has changed ID.
-
Constructor Details
-
InMemoryLoggedOutSessionStore
public InMemoryLoggedOutSessionStore()
-
-
Method Details
-
logout
Description copied from interface:LoggedOutSessionStoreRecords the given session ID as having been logged out at the OpenID Provider.Implementations could also directly invalidate the session if possible, rather than only marking it as logged out to later be invalidated by the
UserFilter. In this case, theBackchannelLogoutSessionListenermight not be necessary depending on the implementation.- Specified by:
logoutin interfaceLoggedOutSessionStore- See Also:
-
doLogout
Can be implemented to effectively invalidate sessions.A Jetty implementation could thus use
getManagedSession(sessionId).invalidate()on the context'sSessionManager, a Tomcat implementationfindSession(sessionId).invalidate()on the context'sManager, an Undertow implementationgetSession(sessionId).invalidate(null)on the context'sSessionManager, etc. -
isLoggedOut
Description copied from interface:LoggedOutSessionStoreReturns whether the given session ID has been logged out.Called by
UserFilterto possibly invalidate sessions as they're being tentatively used.- Specified by:
isLoggedOutin interfaceLoggedOutSessionStore- See Also:
-
acquire
Description copied from interface:LoggedOutSessionStoreAssociates the OpenID Provider session ID with a new application's HTTP session.- Specified by:
acquirein interfaceLoggedOutSessionStore- See Also:
-
release
Description copied from interface:LoggedOutSessionStoreDissociates the OpenID Provider session ID from an application's HTTP session.- Specified by:
releasein interfaceLoggedOutSessionStore- See Also:
-
renew
Description copied from interface:LoggedOutSessionStoreNotifies the store that the application's HTTP session, associated with a given OpenID Provider session ID, has changed ID.- Specified by:
renewin interfaceLoggedOutSessionStore
-