edu.internet2.middleware.grouper.ui
Class LoginCheckFilter
java.lang.Object
edu.internet2.middleware.grouper.ui.LoginCheckFilter
- All Implemented Interfaces:
- Filter
public class LoginCheckFilter
- extends Object
- implements Filter
Protects access to resources not listed in the init parameter 'ignore'.
Checks if HttpServletRequest.getRemoteUser() has been set, and ensures that a
Grouper session is initialised for the user, and that the HttpSession is
setup appropriately.
LoginCheckFilter can work with any authentication
scheme which causes the getRemoteUser() method to return an appropriate
value. This includes other Filters which precede the LoginCheckFilter. The
contributed Yale CAS authentication solution uses this approach If you
use Tomcat's default authentication, or some other implementation of HTTP
Basic Authentication, then logging out will not work properly
- Version:
- $Id: LoginCheckFilter.java,v 1.20 2009-11-10 16:43:08 isgwb Exp $
- Author:
- Gary Brown.
LoginCheckFilter
public LoginCheckFilter()
- Constructor
init
public void init(FilterConfig config)
throws ServletException
- Specified by:
init
in interface Filter
- Throws:
ServletException
doFilter
public void doFilter(ServletRequest req,
ServletResponse res,
FilterChain chain)
throws IOException,
ServletException
- Specified by:
doFilter
in interface Filter
- Throws:
IOException
ServletException
destroy
public void destroy()
- Specified by:
destroy
in interface Filter