KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mmbase > security > implementation > context > AnonymousLogin


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 package org.mmbase.security.implementation.context;
11
12 import org.mmbase.security.Rank;
13 import java.util.Map JavaDoc;
14
15 /**
16  * The anonymous login module of the context security implementation only creates the 'anonymous'
17  * user with the rank {@link Rank#ANONYMOUS}.
18  *
19  * @author Eduard Witteveen
20  * @version $Id: AnonymousLogin.java,v 1.6 2005/12/10 13:10:26 michiel Exp $
21  */

22 public class AnonymousLogin extends ContextLoginModule {
23     public ContextUserContext login(Map JavaDoc userLoginInfo, Object JavaDoc[] userParameters) throws org.mmbase.security.SecurityException {
24         return getValidUserContext("anonymous", Rank.ANONYMOUS);
25     }
26 }
27
Popular Tags