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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddestroy(WebContext context, SessionStore sessionStore, String channel) voiddestroySessionBack(WebContext context, SessionStore sessionStore, String key) Destroys the current web session for the given key for a back channel logout.voiddestroySessionFront(WebContext context, SessionStore sessionStore, String key) Destroys the current web session for the given key for a front channel logout.getStore()booleanvoidrecordSession(WebContext context, SessionStore sessionStore, String key) Associates a key with the current web session.voidrenewSession(String oldSessionId, WebContext context, SessionStore sessionStore) Renew the web session.voidsetDestroySession(boolean destroySession) voidtoString()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:LogoutHandlerAssociates a key with the current web session.- Specified by:
recordSessionin interfaceLogoutHandler- Parameters:
context- the web contextsessionStore- the session storekey- the key
-
destroySessionFront
Description copied from interface:LogoutHandlerDestroys the current web session for the given key for a front channel logout.- Specified by:
destroySessionFrontin interfaceLogoutHandler- Parameters:
context- the web contextsessionStore- the session storekey- the key
-
destroy
-
destroySessionBack
Description copied from interface:LogoutHandlerDestroys the current web session for the given key for a back channel logout.- Specified by:
destroySessionBackin interfaceLogoutHandler- Parameters:
context- the web contextsessionStore- the session storekey- the key
-
renewSession
Description copied from interface:LogoutHandlerRenew the web session.- Specified by:
renewSessionin 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
-