Class ForceLoginFilter

  • All Implemented Interfaces:
    javax.servlet.Filter

    public class ForceLoginFilter
    extends java.lang.Object
    This Filter forces a user to be logged in. This filter works with SSOClientFilter and must come after it as it looks for the user with SSOClientFilter.getUserFromRequest(request); If a user is not logged in, it redirects to the SSO permission denied page
    • 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 doFilterInternal​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain chain)  
      void init​(javax.servlet.FilterConfig ctx)  
      • Methods inherited from class java.lang.Object

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

      • ForceLoginFilter

        public ForceLoginFilter()
    • Method Detail

      • init

        public final void init​(javax.servlet.FilterConfig ctx)
                        throws javax.servlet.ServletException
        Throws:
        javax.servlet.ServletException
      • doFilterInternal

        public final void doFilterInternal​(javax.servlet.http.HttpServletRequest request,
                                           javax.servlet.http.HttpServletResponse response,
                                           javax.servlet.FilterChain chain)
                                    throws java.io.IOException,
                                           javax.servlet.ServletException
        Throws:
        java.io.IOException
        javax.servlet.ServletException
      • destroy

        public final void destroy()
      • 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