Class LogoutServlet

  • All Implemented Interfaces:
    java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

    public class LogoutServlet
    extends javax.servlet.http.HttpServlet
    The 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 void doPost​(javax.servlet.http.HttpServletRequest arg0, javax.servlet.http.HttpServletResponse arg1)  
      uk.ac.warwick.sso.client.cache.UserCache getCache()  
      java.lang.String getConfigSuffix()  
      void init​(javax.servlet.ServletConfig ctx)  
      void setCache​(uk.ac.warwick.sso.client.cache.UserCache cache)  
      void setConfigSuffix​(java.lang.String configSuffix)  
      • Methods inherited from class javax.servlet.http.HttpServlet

        doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service
      • Methods inherited from class javax.servlet.GenericServlet

        destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LogoutServlet

        public LogoutServlet()
    • 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:
        doPost in class javax.servlet.http.HttpServlet
        Throws:
        javax.servlet.ServletException
        java.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:
        init in interface javax.servlet.Servlet
        Overrides:
        init in class javax.servlet.GenericServlet
        Throws:
        javax.servlet.ServletException
      • getConfigSuffix

        public final java.lang.String getConfigSuffix()
      • setConfigSuffix

        public final void setConfigSuffix​(java.lang.String configSuffix)