org.apache.cocoon.auth.impl
Class SimpleSecurityHandler
java.lang.Object
org.apache.cocoon.auth.impl.AbstractSecurityHandler
org.apache.cocoon.auth.impl.SimpleSecurityHandler
- All Implemented Interfaces:
- BeanNameAware, org.apache.cocoon.auth.SecurityHandler
- public class SimpleSecurityHandler
- extends AbstractSecurityHandler
The simple security handler implements the SecurityHandler
interface.
The user configuration is done through a properties object which can be configured
in the Spring application context.
The property file should have the following format:
{username}={userpassword}
For example:
cziegeler=secret_password
cocoon=apache
If you want to specify additional user attributes, use this format:
{username}.{attributename}={attributevalue}
- Version:
- $Id: SimpleSecurityHandler.html 1304280 2012-03-23 11:18:01Z ilgrosso $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
userProperties
protected Properties userProperties
- The properties.
SimpleSecurityHandler
public SimpleSecurityHandler()
setUserProperties
public void setUserProperties(Properties p)
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 logoutContext,
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.