org.apache.cocoon.auth.impl
Class DAOSecurityHandler

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

public class DAOSecurityHandler
extends AbstractSecurityHandler

Implementation of a DAO security handler. This implementation supports: - a retry count (counting up and down) - an expires date for the user account. The database access is forwarded to a configured UserDAO instance.

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

Field Summary
protected  boolean checkExpires
           
protected  int defaultRetryCount
           
protected  boolean negateRetryCount
           
protected  UserDAO userDAO
           
protected  boolean useRetryCount
           
 
Fields inherited from class org.apache.cocoon.auth.impl.AbstractSecurityHandler
anonName, anonPass, id, supportAnonUser
 
Constructor Summary
DAOSecurityHandler()
           
 
Method Summary
 org.apache.cocoon.auth.User login(Map loginContext)
           
 void logout(Map context, org.apache.cocoon.auth.User user)
           
 void setCheckExpires(boolean checkExpires)
           
 void setDefaultRetryCount(int defaultRetryCount)
           
 void setNegateRetryCount(boolean negateRetryCount)
           
 void setUserDAO(UserDAO userDAO)
           
 void setUseRetryCount(boolean useRetryCount)
           
 
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

userDAO

protected UserDAO userDAO

checkExpires

protected boolean checkExpires

useRetryCount

protected boolean useRetryCount

negateRetryCount

protected boolean negateRetryCount

defaultRetryCount

protected int defaultRetryCount
Constructor Detail

DAOSecurityHandler

public DAOSecurityHandler()
Method Detail

setCheckExpires

public void setCheckExpires(boolean checkExpires)

setDefaultRetryCount

public void setDefaultRetryCount(int defaultRetryCount)

setNegateRetryCount

public void setNegateRetryCount(boolean negateRetryCount)

setUserDAO

public void setUserDAO(UserDAO userDAO)

setUseRetryCount

public void setUseRetryCount(boolean useRetryCount)

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.