Package org.pac4j.core.logout.handler
Class DefaultSessionLogoutHandler
java.lang.Object
org.pac4j.core.logout.handler.DefaultSessionLogoutHandler
- All Implemented Interfaces:
SessionLogoutHandler
Default session logout handler.
- Since:
- 2.0.0
- Author:
- Jerome Leleu
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor for DefaultSessionLogoutHandler.DefaultSessionLogoutHandler
(Store<String, Object> store) Constructor for DefaultSessionLogoutHandler. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
destroy
(WebContext webContext, SessionStore sessionStore, ProfileManagerFactory profileManagerFactory, String channel) destroy.void
destroySession
(CallContext ctx, String key) Destroys the current web session for the given key for a front or back channel logout.void
recordSession
(CallContext ctx, String key) Associates a key with the current web session.void
renewSession
(CallContext ctx, String oldSessionId) Renew the web session.
-
Constructor Details
-
DefaultSessionLogoutHandler
public DefaultSessionLogoutHandler()Constructor for DefaultSessionLogoutHandler.
-
DefaultSessionLogoutHandler
Constructor for DefaultSessionLogoutHandler.
- Parameters:
store
- aStore
object
-
-
Method Details
-
recordSession
Associates a key with the current web session.- Specified by:
recordSession
in interfaceSessionLogoutHandler
- Parameters:
ctx
- the contextkey
- the key
-
destroySession
Destroys the current web session for the given key for a front or back channel logout.- Specified by:
destroySession
in interfaceSessionLogoutHandler
- Parameters:
ctx
- the contextkey
- the key
-
destroy
protected void destroy(WebContext webContext, SessionStore sessionStore, ProfileManagerFactory profileManagerFactory, String channel) destroy.
- Parameters:
webContext
- aWebContext
objectsessionStore
- aSessionStore
objectprofileManagerFactory
- aProfileManagerFactory
objectchannel
- aString
object
-
renewSession
Renew the web session.- Specified by:
renewSession
in interfaceSessionLogoutHandler
- Parameters:
ctx
- the contextoldSessionId
- the old session identifier
-