01: /* $Id: CRAuthenticator.java,v 1.1.1.1 2002/10/02 18:42:55 wastl Exp $ */
02: package org.webengruven.webmail.auth;
03:
04: import net.wastl.webmail.server.*;
05: import net.wastl.webmail.exceptions.*;
06:
07: /**
08: * CRAuthenticator.java
09: *
10: * This is the base class for all Authenticators which implement challenge
11: * response authentication. As a general rule most parts of Webmail won't
12: * care if if an authenticator is a child of the class Authenticator, or a
13: * child of CRAuthenticator, however, there are a few extra methods needed
14: * for challenge response.
15: *
16: * Also worth noting, this used to be the name of concrete authenticator. I
17: * decided that it was okay to reuse the name here because:
18: * 1) it was only a test authenticator
19: * 2) I really couldn't think of a better name.
20: *
21: * Created: Mon Jul 15 20:25
22: * Recreated: Sun Sep 24 2000
23: *
24: * 08/11/2000 Sebastian Schaffert: Modified to fit into WebMail 0.7.2
25: * - added import net.wastl.webmail.exceptions.*;
26: *
27: *
28: * @author Devin Kowatch
29: * @version $Revision: 1.1.1.1 $
30: * @see webmail.server.UserData
31: *
32: * Copyright (C) 2000 Devin Kowatch
33: */
34: /* This program is free software; you can redistribute it and/or
35: * modify it under the terms of the Lesser GNU General Public License
36: * as published by the Free Software Foundation; either version 2
37: * of the License, or (at your option) any later version.
38: *
39: * This program is distributed in the hope that it will be useful,
40: * but WITHOUT ANY WARRANTY; without even the implied warranty of
41: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
42: * Lesser GNU General Public License for more details.
43: *
44: * You should have received a copy of the Lesser GNU General Public License
45: * along with this program; if not, write to the Free Software
46: * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
47: * USA.
48: */
49:
50: public abstract class CRAuthenticator extends Authenticator {
51:
52: /* dummy c'tor */
53: public CRAuthenticator() {
54: }
55:
56: /** Return an AuthDisplayMngr to use for display*/
57: public AuthDisplayMngr getAuthDisplayMngr() {
58: return new CRAuthDisplayMngr(this );
59: }
60:
61: /** Get the challenge for this authentication. This will get passed some
62: * user data and should return the approriate challenge string for that
63: * user.
64: */
65: public abstract String getChallenge(UserData ud)
66: throws WebMailException;
67: } // CRAuthenticator
|