public class CasSingleSignOutHandler extends Object implements LogoutHandler
This class is the logout handler for the CasClient
class based on the SingleSignOutHandler
class of the Jasig CAS client.
It should only be used in J2E context.
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
logger |
Constructor and Description |
---|
CasSingleSignOutHandler()
Construct an instance.
|
CasSingleSignOutHandler(org.jasig.cas.client.session.SingleSignOutHandler singleSignOutHandler)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
destroySession(WebContext context)
Destroys the current web session for the given CAS logout request.
|
org.jasig.cas.client.session.SessionMappingStorage |
getSessionMappingStorage() |
boolean |
isLogoutRequest(WebContext context)
Defines if this request is a logout one.
|
boolean |
isTokenRequest(WebContext context)
Defines if this request is a token one.
|
void |
recordSession(WebContext context,
String ticket)
Associates a token request with the current web session.
|
void |
setSessionMappingStorage(org.jasig.cas.client.session.SessionMappingStorage sessionMappingStorage) |
public CasSingleSignOutHandler()
@Deprecated public CasSingleSignOutHandler(org.jasig.cas.client.session.SingleSignOutHandler singleSignOutHandler)
SingleSignOutHandler
class.
The provided handler is not taken into account.singleSignOutHandler
- the real SSOut handlerpublic boolean isTokenRequest(WebContext context)
LogoutHandler
isTokenRequest
in interface LogoutHandler
context
- the web contextpublic boolean isLogoutRequest(WebContext context)
LogoutHandler
isLogoutRequest
in interface LogoutHandler
context
- the web contextpublic void recordSession(WebContext context, String ticket)
LogoutHandler
recordSession
in interface LogoutHandler
context
- the web contextticket
- the service ticketpublic void destroySession(WebContext context)
LogoutHandler
destroySession
in interface LogoutHandler
context
- the web contextpublic org.jasig.cas.client.session.SessionMappingStorage getSessionMappingStorage()
public void setSessionMappingStorage(org.jasig.cas.client.session.SessionMappingStorage sessionMappingStorage)
Copyright © 2016. All rights reserved.