KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mmbase > security > implementation > basic > AnonymousLoginModule


1 /*
2
3 This software is OSI Certified Open Source Software.
4 OSI Certified is a certification mark of the Open Source Initiative.
5
6 The license (Mozilla version 1.0) can be read at the MMBase site.
7 See http://www.MMBase.org/license
8
9 */

10
11 package org.mmbase.security.implementation.basic;
12
13 import java.util.Map JavaDoc;
14
15 import org.mmbase.util.logging.Logger;
16 import org.mmbase.util.logging.Logging;
17
18 /**
19  * Class AnonymousLoginModule
20  * @javadoc
21  * @author Eduard Witteveen
22  * @version $Id: AnonymousLoginModule.java,v 1.6 2004/12/16 12:14:05 michiel Exp $
23  */

24
25 public class AnonymousLoginModule implements LoginModule {
26     private static final Logger log = Logging.getLoggerInstance(AnonymousLoginModule.class);
27
28     public void load(Map JavaDoc properties) {
29         // nah do nothing..
30
}
31
32     public boolean login(NameContext user, Map JavaDoc loginInfo, Object JavaDoc[] parameters) {
33         log.debug("anonymous login..");
34         // set the identifier...
35
user.setIdentifier("anonymous");
36         return true;
37     }
38 }
39
Popular Tags