org.apache.cocoon.auth
Class AbstractSecurityHandler
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
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 SecurityHandler
s. 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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
id
protected String id
- The unique identifier.
AbstractSecurityHandler
public AbstractSecurityHandler()
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.