01: /*
02:
03: This software is OSI Certified Open Source Software.
04: OSI Certified is a certification mark of the Open Source Initiative.
05:
06: The license (Mozilla version 1.0) can be read at the MMBase site.
07: See http://www.MMBase.org/license
08:
09: */
10: package org.mmbase.security.implementation.context;
11:
12: import org.mmbase.security.Rank;
13: import java.util.Map;
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.7 2008/01/10 14:12:24 michiel Exp $
21: */
22: public class AnonymousLogin extends ContextLoginModule {
23: public ContextUserContext login(Map<String, Object> userLoginInfo,
24: Object[] userParameters)
25: throws org.mmbase.security.SecurityException {
26: return getValidUserContext("anonymous", Rank.ANONYMOUS);
27: }
28: }
|