org.apache.cocoon.auth.impl
Class AbstractSecurityHandler

java.lang.Object
  extended byorg.apache.cocoon.auth.impl.AbstractSecurityHandler
All Implemented Interfaces:
BeanNameAware, org.apache.cocoon.auth.SecurityHandler
Direct Known Subclasses:
AnonymousSecurityHandler, DAOSecurityHandler, PipelineSecurityHandler, ServletSecurityHandler, SimpleSecurityHandler

public abstract class AbstractSecurityHandler
extends Object
implements org.apache.cocoon.auth.SecurityHandler, BeanNameAware

This is a base class that can be used for own SecurityHandlers.

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

Field Summary
protected  String anonName
          Name of the anonymous user.
protected  String anonPass
          Password of the anonymous user.
protected  String id
          The id for the security handler.
protected  boolean supportAnonUser
          Support for anonymous user?
 
Constructor Summary
AbstractSecurityHandler()
           
 
Method Summary
 String getId()
           
 Log getLogger()
           
 void setAnonymousName(String anonName)
           
 void setAnonymousPassword(String anonPass)
           
 void setBeanName(String name)
           
 void setLogger(Log l)
           
 void setSupportAnonymousUser(boolean supportAnonUser)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.cocoon.auth.SecurityHandler
login, logout
 

Field Detail

supportAnonUser

protected boolean supportAnonUser
Support for anonymous user?


anonName

protected String anonName
Name of the anonymous user.


anonPass

protected String anonPass
Password of the anonymous user.


id

protected String id
The id for the security handler.

Constructor Detail

AbstractSecurityHandler

public AbstractSecurityHandler()
Method Detail

getLogger

public Log getLogger()

setLogger

public void setLogger(Log l)

setAnonymousName

public void setAnonymousName(String anonName)

setAnonymousPassword

public void setAnonymousPassword(String anonPass)

setSupportAnonymousUser

public void setSupportAnonymousUser(boolean supportAnonUser)

setBeanName

public void setBeanName(String name)
Specified by:
setBeanName in interface BeanNameAware
See Also:
BeanNameAware.setBeanName(java.lang.String)

getId

public String getId()
Specified by:
getId in interface org.apache.cocoon.auth.SecurityHandler
See Also:
SecurityHandler.getId()


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