Package uk.ac.warwick.sso.client
Class LogoutServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- uk.ac.warwick.sso.client.LogoutServlet
-
- All Implemented Interfaces:
java.io.Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig
public class LogoutServlet extends javax.servlet.http.HttpServletThe LogoutServlet is necessary for new-mode SSO apps that want to be informed when the user has logged out. The user doesn't visit this servlet - instead, they visit the Websignon servlet which sends a POST request to the logout servlet of any apps currently signed in.This servlet must only be used over HTTPS. The full URL to this servlet will be required when registering an application with SSO, so that it knows where to call.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LogoutServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoPost(javax.servlet.http.HttpServletRequest arg0, javax.servlet.http.HttpServletResponse arg1)uk.ac.warwick.sso.client.cache.UserCachegetCache()java.lang.StringgetConfigSuffix()voidinit(javax.servlet.ServletConfig ctx)voidsetCache(uk.ac.warwick.sso.client.cache.UserCache cache)voidsetConfigSuffix(java.lang.String configSuffix)-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service
-
-
-
-
Method Detail
-
doPost
protected final void doPost(javax.servlet.http.HttpServletRequest arg0, javax.servlet.http.HttpServletResponse arg1) throws javax.servlet.ServletException, java.io.IOException- Overrides:
doPostin classjavax.servlet.http.HttpServlet- Throws:
javax.servlet.ServletExceptionjava.io.IOException
-
getCache
public final uk.ac.warwick.sso.client.cache.UserCache getCache()
-
setCache
public final void setCache(uk.ac.warwick.sso.client.cache.UserCache cache)
-
init
public final void init(javax.servlet.ServletConfig ctx) throws javax.servlet.ServletException- Specified by:
initin interfacejavax.servlet.Servlet- Overrides:
initin classjavax.servlet.GenericServlet- Throws:
javax.servlet.ServletException
-
getConfigSuffix
public final java.lang.String getConfigSuffix()
-
setConfigSuffix
public final void setConfigSuffix(java.lang.String configSuffix)
-
-