01: /*
02: * Copyright 2003-2006 Rick Knowles <winstone-devel at lists sourceforge net>
03: * Distributed under the terms of either:
04: * - the common development and distribution license (CDDL), v1.0; or
05: * - the GNU Lesser General Public License, v2.1 or later
06: */
07: package winstone;
08:
09: import java.io.IOException;
10: import javax.servlet.ServletException;
11: import javax.servlet.*;
12:
13: /**
14: * @author <a href="mailto:rick_knowles@hotmail.com">Rick Knowles</a>
15: * @version $Id: AuthenticationHandler.java,v 1.2 2006/02/28 07:32:47 rickknowles Exp $
16: */
17: public interface AuthenticationHandler {
18: /**
19: * Evaluates any authentication constraints, intercepting if auth is
20: * required. The relevant authentication handler subclass's logic is used to
21: * actually authenticate.
22: *
23: * @return A boolean indicating whether to continue after this request
24: */
25: public boolean processAuthentication(ServletRequest request,
26: ServletResponse response, String pathRequested)
27: throws IOException, ServletException;
28: }
|