01: /*
02: * Created on 16.11.2004
03: */
04: package de.jwic.web;
05:
06: import javax.servlet.ServletConfig;
07: import javax.servlet.ServletException;
08: import javax.servlet.http.HttpServletRequest;
09:
10: /**
11: * Authentication.
12: *
13: * $Id: IAuthenticator.java,v 1.1 2006/01/16 08:31:13 lordsam Exp $
14: * @version $Revision: 1.1 $
15: * @author JBornemann
16: */
17: public interface IAuthenticator {
18:
19: public final static String SESSION_REDIRECT_URL = "auth_redirect_url";
20:
21: /**
22: * Returns true if the remote user of the request is authenticated.
23: * @param req
24: * @param res
25: */
26: public abstract boolean isAuthenticated(HttpServletRequest req);
27:
28: /**
29: * Initialisation with ServletConfig called by the DispatcherServlet.
30: * @param cfg
31: */
32: public abstract void init(ServletConfig cfg)
33: throws ServletException;
34:
35: }
|