public class DefaultLogoutHandler<C extends WebContext> extends Object implements LogoutHandler<C>
Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
logger |
Constructor and Description |
---|
DefaultLogoutHandler() |
DefaultLogoutHandler(Store<String,Object> store) |
Modifier and Type | Method and Description |
---|---|
protected void |
destroy(C context,
SessionStore sessionStore,
String channel) |
void |
destroySessionBack(C context,
String key)
Destroys the current web session for the given key for a back channel logout.
|
void |
destroySessionFront(C context,
String key)
Destroys the current web session for the given key for a front channel logout.
|
Store<String,Object> |
getStore() |
boolean |
isDestroySession() |
void |
recordSession(C context,
String key)
Associates a key with the current web session.
|
void |
renewSession(String oldSessionId,
C context)
Renew the web session.
|
void |
setDestroySession(boolean destroySession) |
void |
setStore(Store<String,Object> store) |
String |
toString() |
public void recordSession(C context, String key)
LogoutHandler
recordSession
in interface LogoutHandler<C extends WebContext>
context
- the web contextkey
- the keypublic void destroySessionFront(C context, String key)
LogoutHandler
destroySessionFront
in interface LogoutHandler<C extends WebContext>
context
- the web contextkey
- the keyprotected void destroy(C context, SessionStore sessionStore, String channel)
public void destroySessionBack(C context, String key)
LogoutHandler
destroySessionBack
in interface LogoutHandler<C extends WebContext>
context
- the web contextkey
- the keypublic void renewSession(String oldSessionId, C context)
LogoutHandler
renewSession
in interface LogoutHandler<C extends WebContext>
oldSessionId
- the old session identifiercontext
- the web contextpublic boolean isDestroySession()
public void setDestroySession(boolean destroySession)
Copyright © 2019. All rights reserved.