org.apache.cocoon.auth
Class AbstractSecurityHandler

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.cocoon.auth.AbstractSecurityHandler
All Implemented Interfaces:
Configurable, Contextualizable, LogEnabled, ThreadSafe, SecurityHandler
Direct Known Subclasses:
AnonymousSecurityHandler, DBSecurityHandler, PipelineSecurityHandler, ServletSecurityHandler

public abstract class AbstractSecurityHandler
extends AbstractLogEnabled
implements SecurityHandler, Configurable, Contextualizable, ThreadSafe

This is a base class that can be used for own SecurityHandlers. It provides a save implementation for the getId() method. The only drawback is that a subclass has to use Configurable and can't use Parameterizable.

Version:
$Id: AbstractSecurityHandler.html 1304258 2012-03-23 10:09:27Z ilgrosso $

Field Summary
protected  String id
          The unique identifier.
 
Constructor Summary
AbstractSecurityHandler()
           
 
Method Summary
 void configure(Configuration conf)
           
 void contextualize(Context context)
           
 String getId()
          Return a unique identifier for this security handler.
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
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

id

protected String id
The unique identifier.

Constructor Detail

AbstractSecurityHandler

public AbstractSecurityHandler()
Method Detail

contextualize

public void contextualize(Context context)
                   throws ContextException
Specified by:
contextualize in interface Contextualizable
Throws:
ContextException
See Also:
Contextualizable.contextualize(org.apache.avalon.framework.context.Context)

configure

public void configure(Configuration conf)
               throws ConfigurationException
Specified by:
configure in interface Configurable
Throws:
ConfigurationException
See Also:
Configurable.configure(org.apache.avalon.framework.configuration.Configuration)

getId

public String getId()
Description copied from interface: SecurityHandler
Return a unique identifier for this security handler. For session replication to work, a security handler must deliver the same identifier across systems!

Specified by:
getId in interface SecurityHandler
Returns:
A unique identifier.
See Also:
SecurityHandler.getId()


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.