public class DefaultCasLogoutHandler<C extends WebContext> extends Object implements CasLogoutHandler<C>
CasClient
, inspired by the SingleSignOutHandler
of the Apereo CAS client.Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
logger |
Constructor and Description |
---|
DefaultCasLogoutHandler() |
DefaultCasLogoutHandler(Store<String,Object> store) |
Modifier and Type | Method and Description |
---|---|
protected void |
destroy(C context,
SessionStore sessionStore,
String channel) |
void |
destroySessionBack(C context,
String ticket)
Destroys the current web session for the given ticket for a back channel logout.
|
void |
destroySessionFront(C context,
String ticket)
Destroys the current web session for the given ticket for a front channel logout.
|
Store<String,Object> |
getStore() |
boolean |
isDestroySession() |
void |
recordSession(C context,
String ticket)
Associates a ticket 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 ticket)
CasLogoutHandler
recordSession
in interface CasLogoutHandler<C extends WebContext>
context
- the web contextticket
- the ticketpublic void destroySessionFront(C context, String ticket)
CasLogoutHandler
destroySessionFront
in interface CasLogoutHandler<C extends WebContext>
context
- the web contextticket
- the ticketprotected void destroy(C context, SessionStore sessionStore, String channel)
public void destroySessionBack(C context, String ticket)
CasLogoutHandler
destroySessionBack
in interface CasLogoutHandler<C extends WebContext>
context
- the web contextticket
- the ticketpublic void renewSession(String oldSessionId, C context)
CasLogoutHandler
renewSession
in interface CasLogoutHandler<C extends WebContext>
oldSessionId
- the old session identifiercontext
- the web contextpublic boolean isDestroySession()
public void setDestroySession(boolean destroySession)
Copyright © 2017. All rights reserved.