org.apache.cocoon.auth.impl
Class AnonymousSecurityHandler

java.lang.Object
  extended byorg.apache.cocoon.auth.impl.AbstractSecurityHandler
      extended byorg.apache.cocoon.auth.impl.AnonymousSecurityHandler
All Implemented Interfaces:
BeanNameAware, org.apache.cocoon.auth.SecurityHandler

public class AnonymousSecurityHandler
extends AbstractSecurityHandler

This security handlers doesn't check any credentials of the user. It just creates a new user object.

Version:
$Id: AnonymousSecurityHandler.html 1304280 2012-03-23 11:18:01Z ilgrosso $

Field Summary
protected  long number
          Counter to generate the anonymous user object.
 
Fields inherited from class org.apache.cocoon.auth.impl.AbstractSecurityHandler
anonName, anonPass, id, supportAnonUser
 
Constructor Summary
AnonymousSecurityHandler()
           
 
Method Summary
 org.apache.cocoon.auth.User login(Map loginContext)
           
 void logout(Map context, org.apache.cocoon.auth.User user)
           
 
Methods inherited from class org.apache.cocoon.auth.impl.AbstractSecurityHandler
getId, getLogger, setAnonymousName, setAnonymousPassword, setBeanName, setLogger, setSupportAnonymousUser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

number

protected long number
Counter to generate the anonymous user object.

Constructor Detail

AnonymousSecurityHandler

public AnonymousSecurityHandler()
Method Detail

login

public org.apache.cocoon.auth.User login(Map loginContext)
                                  throws org.apache.cocoon.auth.AuthenticationException
Throws:
org.apache.cocoon.auth.AuthenticationException
See Also:
SecurityHandler.login(java.util.Map)

logout

public void logout(Map context,
                   org.apache.cocoon.auth.User user)
See Also:
SecurityHandler.logout(java.util.Map, org.apache.cocoon.auth.User)


Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.