Package org.pac4j.core.logout.handler
Class DefaultLogoutHandler
java.lang.Object
org.pac4j.core.profile.factory.ProfileManagerFactoryAware
org.pac4j.core.logout.handler.DefaultLogoutHandler
- All Implemented Interfaces:
LogoutHandler
Default logout handler.
- Since:
- 2.0.0
- Author:
- Jerome Leleu
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
destroy
(WebContext context, SessionStore sessionStore, String channel) void
destroySessionBack
(WebContext context, SessionStore sessionStore, String key) Destroys the current web session for the given key for a back channel logout.void
destroySessionFront
(WebContext context, SessionStore sessionStore, String key) Destroys the current web session for the given key for a front channel logout.getStore()
boolean
void
recordSession
(WebContext context, SessionStore sessionStore, String key) Associates a key with the current web session.void
renewSession
(String oldSessionId, WebContext context, SessionStore sessionStore) Renew the web session.void
setDestroySession
(boolean destroySession) void
toString()
Methods inherited from class org.pac4j.core.profile.factory.ProfileManagerFactoryAware
getProfileManager, getProfileManagerFactory, setProfileManagerFactory
-
Field Details
-
logger
protected final org.slf4j.Logger logger
-
-
Constructor Details
-
DefaultLogoutHandler
public DefaultLogoutHandler() -
DefaultLogoutHandler
-
-
Method Details
-
recordSession
Description copied from interface:LogoutHandler
Associates a key with the current web session.- Specified by:
recordSession
in interfaceLogoutHandler
- Parameters:
context
- the web contextsessionStore
- the session storekey
- the key
-
destroySessionFront
Description copied from interface:LogoutHandler
Destroys the current web session for the given key for a front channel logout.- Specified by:
destroySessionFront
in interfaceLogoutHandler
- Parameters:
context
- the web contextsessionStore
- the session storekey
- the key
-
destroy
-
destroySessionBack
Description copied from interface:LogoutHandler
Destroys the current web session for the given key for a back channel logout.- Specified by:
destroySessionBack
in interfaceLogoutHandler
- Parameters:
context
- the web contextsessionStore
- the session storekey
- the key
-
renewSession
Description copied from interface:LogoutHandler
Renew the web session.- Specified by:
renewSession
in interfaceLogoutHandler
- Parameters:
oldSessionId
- the old session identifiercontext
- the web contextsessionStore
- the session store
-
getStore
-
setStore
-
isDestroySession
public boolean isDestroySession() -
setDestroySession
public void setDestroySession(boolean destroySession) -
toString
-