org.apache.cocoon.auth.impl
Class AnonymousSecurityHandler
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.auth.AbstractSecurityHandler
org.apache.cocoon.auth.impl.AnonymousSecurityHandler
- All Implemented Interfaces:
- Configurable, Contextualizable, LogEnabled, ThreadSafe, 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 1304258 2012-03-23 10:09:27Z ilgrosso $
Field Summary |
protected long |
number
Counter to generate the anonymous user object. |
Method Summary |
User |
login(Map loginContext)
Try to authenticate the user. |
void |
logout(Map context,
User user)
This notifies the security-handler that a user logs out. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
number
protected long number
- Counter to generate the anonymous user object.
AnonymousSecurityHandler
public AnonymousSecurityHandler()
login
public User login(Map loginContext)
throws Exception
- Description copied from interface:
SecurityHandler
- Try to authenticate the user.
- Parameters:
loginContext
- The context for the login operation.
- Returns:
- The user if the authentication is successful, null otherwise.
- Throws:
Exception
- If something goes wrong.- See Also:
SecurityHandler.login(java.util.Map)
logout
public void logout(Map context,
User user)
- Description copied from interface:
SecurityHandler
- This notifies the security-handler that a user logs out.
- Parameters:
context
- The context for the login operation.user
- The user object.- See Also:
SecurityHandler.logout(java.util.Map, org.apache.cocoon.auth.User)
Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.