org.apache.cocoon.auth.impl
Class SimpleSecurityHandler

java.lang.Object
  extended byorg.apache.cocoon.auth.impl.AbstractSecurityHandler
      extended byorg.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 $

Field Summary
protected  Properties userProperties
          The properties.
 
Fields inherited from class org.apache.cocoon.auth.impl.AbstractSecurityHandler
anonName, anonPass, id, supportAnonUser
 
Constructor Summary
SimpleSecurityHandler()
           
 
Method Summary
 org.apache.cocoon.auth.User login(Map loginContext)
           
 void logout(Map logoutContext, org.apache.cocoon.auth.User user)
           
 void setUserProperties(Properties p)
           
 
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

userProperties

protected Properties userProperties
The properties.

Constructor Detail

SimpleSecurityHandler

public SimpleSecurityHandler()
Method Detail

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.