|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.avalon.framework.logger.AbstractLogEnabled org.apache.cocoon.auth.AbstractSecurityHandler org.apache.cocoon.auth.impl.PipelineSecurityHandler
public class PipelineSecurityHandler
Verify if a user can be authenticated.
Nested Class Summary | |
---|---|
static class |
PipelineSecurityHandler.PipelineSHUser
The internal user class. |
Field Summary | |
---|---|
protected Configuration |
config
Configuration. |
protected Context |
context
Context. |
protected ServiceManager |
manager
The service manager. |
protected SourceResolver |
resolver
The source resolver. |
Fields inherited from class org.apache.cocoon.auth.AbstractSecurityHandler |
---|
id |
Constructor Summary | |
---|---|
PipelineSecurityHandler()
|
Method Summary | |
---|---|
void |
configure(Configuration conf)
|
void |
contextualize(Context aContext)
|
void |
dispose()
|
protected String |
isValidAuthenticationDocument(Document doc)
Check if this is a valid document. |
User |
login(Map loginContext)
Try to authenticate the user. |
void |
logout(Map logoutContext,
User user)
This notifies the security-handler that a user logs out. |
void |
service(ServiceManager aManager)
|
Methods inherited from class org.apache.cocoon.auth.AbstractSecurityHandler |
---|
getId |
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 |
Field Detail |
---|
protected ServiceManager manager
protected SourceResolver resolver
protected Configuration config
protected Context context
Constructor Detail |
---|
public PipelineSecurityHandler()
Method Detail |
---|
public void contextualize(Context aContext) throws ContextException
contextualize
in interface Contextualizable
contextualize
in class AbstractSecurityHandler
ContextException
Contextualizable.contextualize(org.apache.avalon.framework.context.Context)
public void configure(Configuration conf) throws ConfigurationException
configure
in interface Configurable
configure
in class AbstractSecurityHandler
ConfigurationException
Configurable.configure(org.apache.avalon.framework.configuration.Configuration)
protected String isValidAuthenticationDocument(Document doc)
doc
- The document read by the pipeline.
public User login(Map loginContext) throws Exception
SecurityHandler
login
in interface SecurityHandler
loginContext
- The context for the login operation.
Exception
- If something goes wrong.SecurityHandler.login(java.util.Map)
public void service(ServiceManager aManager) throws ServiceException
service
in interface Serviceable
ServiceException
Serviceable.service(org.apache.avalon.framework.service.ServiceManager)
public void dispose()
dispose
in interface Disposable
Disposable.dispose()
public void logout(Map logoutContext, User user)
SecurityHandler
logout
in interface SecurityHandler
logoutContext
- The context for the login operation.user
- The user object.SecurityHandler.logout(java.util.Map, org.apache.cocoon.auth.User)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |