Package net.ltgt.oidc.servlet
Class BackchannelLogoutSessionListener
java.lang.Object
net.ltgt.oidc.servlet.BackchannelLogoutSessionListener
- All Implemented Interfaces:
HttpSessionAttributeListener,HttpSessionIdListener,EventListener
public class BackchannelLogoutSessionListener
extends Object
implements HttpSessionAttributeListener, HttpSessionIdListener
Removes the OpenID Connect
sid from the LoggedOutSessionStore whenever a session
is destroyed.
The LoggedOutSessionStore must have been added as a ServletContext attribute under the name LoggedOutSessionStore.CONTEXT_ATTRIBUTE_NAME.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBackchannelLogoutSessionListener(LoggedOutSessionStore loggedOutSessionStore) Constructs a listener with the given logged-out session store. -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidsessionIdChanged(HttpSessionEvent event, String oldSessionId)
-
Constructor Details
-
BackchannelLogoutSessionListener
public BackchannelLogoutSessionListener() -
BackchannelLogoutSessionListener
Constructs a listener with the given logged-out session store.When this constructor is used, the servlet context attribute won't be read.
-
-
Method Details
-
attributeAdded
- Specified by:
attributeAddedin interfaceHttpSessionAttributeListener
-
attributeRemoved
- Specified by:
attributeRemovedin interfaceHttpSessionAttributeListener
-
attributeReplaced
- Specified by:
attributeReplacedin interfaceHttpSessionAttributeListener
-
sessionIdChanged
- Specified by:
sessionIdChangedin interfaceHttpSessionIdListener
-