KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > winstone > AuthenticationHandler


1 /*
2  * Copyright 2003-2006 Rick Knowles <winstone-devel at lists sourceforge net>
3  * Distributed under the terms of either:
4  * - the common development and distribution license (CDDL), v1.0; or
5  * - the GNU Lesser General Public License, v2.1 or later
6  */

7 package winstone;
8
9 import java.io.IOException JavaDoc;
10 import javax.servlet.ServletException JavaDoc;
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 JavaDoc pathRequested) throws IOException JavaDoc,
27             ServletException JavaDoc;
28 }
29
Popular Tags