Class ForceOldModeFilter

  • All Implemented Interfaces:
    javax.servlet.Filter

    public class ForceOldModeFilter
    extends java.lang.Object
    implements javax.servlet.Filter
    This filter only makes sense if you are using a new-mode application. By mapping this filter to certain URLs, it will cause SSOClientFilter to use old-mode authentication (i.e. just checking the shared WarwickSSO cookie) instead of new-mode. Most people shouldn't need this most of the time, but here it is in case you do.

    The mapping should be before the mapping for SSOClientFilter, otherwise it will be too late.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String ALLOW_OLD_KEY  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void destroy()  
      void doFilter​(javax.servlet.ServletRequest req, javax.servlet.ServletResponse res, javax.servlet.FilterChain chain)  
      void init​(javax.servlet.FilterConfig config)  
      • Methods inherited from class java.lang.Object

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

      • ForceOldModeFilter

        public ForceOldModeFilter()
    • Method Detail

      • destroy

        public void destroy()
        Specified by:
        destroy in interface javax.servlet.Filter
      • doFilter

        public final void doFilter​(javax.servlet.ServletRequest req,
                                   javax.servlet.ServletResponse res,
                                   javax.servlet.FilterChain chain)
                            throws java.io.IOException,
                                   javax.servlet.ServletException
        Specified by:
        doFilter in interface javax.servlet.Filter
        Throws:
        java.io.IOException
        javax.servlet.ServletException
      • init

        public final void init​(javax.servlet.FilterConfig config)
                        throws javax.servlet.ServletException
        Specified by:
        init in interface javax.servlet.Filter
        Throws:
        javax.servlet.ServletException