org.apache.cocoon.webapps.authentication.components
Class DefaultAuthenticationManager

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.cocoon.webapps.authentication.components.DefaultAuthenticationManager
All Implemented Interfaces:
Disposable, Component, Contextualizable, LogEnabled, Serviceable, ThreadSafe, SitemapConfigurable, AuthenticationManager

Deprecated. This block is deprecated and will be removed in future versions.

public class DefaultAuthenticationManager
extends AbstractLogEnabled
implements AuthenticationManager, SitemapConfigurable, Serviceable, Disposable, ThreadSafe, Contextualizable, Component

This is the basis authentication component.

Version:
CVS $Id: DefaultAuthenticationManager.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Carsten Ziegeler

Field Summary
protected  Map authenticators
          Deprecated. Instantiated authenticators
protected  Context context
          Deprecated. The context
protected  SitemapConfigurationHolder holder
          Deprecated. The manager for the authentication handlers
protected  ServiceManager manager
          Deprecated. The Service Manager
protected  SourceResolver resolver
          Deprecated. The Source Resolver
static String SESSION_ATTRIBUTE_USER_STATUS
          Deprecated. The name of the session attribute storing the user status
protected  XPathProcessor xpathProcessor
          Deprecated. The xpath processor
 
Fields inherited from interface org.apache.cocoon.webapps.authentication.AuthenticationManager
ROLE
 
Constructor Summary
DefaultAuthenticationManager()
          Deprecated.  
 
Method Summary
 boolean checkAuthentication(Redirector redirector, String handlerName, String applicationName)
          Deprecated. Is the current user authenticated for the given handler?
 void configure(SitemapConfigurationHolder holder)
          Deprecated. Set the sitemap configuration containing the handlers
 void contextualize(Context context)
          Deprecated.  
 SessionContext createApplicationContext(String name, String loadURI, String saveURI)
          Deprecated. Create Application Context.
 void dispose()
          Deprecated.  
 String getForwardingURI(String handlerName)
          Deprecated.  
static RequestState getRequestState(Context context)
          Deprecated.  
 RequestState getState()
          Deprecated. Get the current state of authentication
 UserHandler isAuthenticated(String handlerName)
          Deprecated. Is the current user authenticated for the given handler?
 UserHandler login(String handlerName, String applicationName, SourceParameters parameters)
          Deprecated. Try to login the user.
 void logout(String handlerName, int mode)
          Deprecated. Perform a logout of the user.
protected  Authenticator lookupAuthenticator(HandlerConfiguration config)
          Deprecated. The authenticator used to authenticate a user
protected  void releaseAuthenticator(Authenticator authenticator, HandlerConfiguration config)
          Deprecated. Release the used authenticator
 void service(ServiceManager manager)
          Deprecated. Serviceable
protected  void setState(RequestState status)
          Deprecated.  
 
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

SESSION_ATTRIBUTE_USER_STATUS

public static final String SESSION_ATTRIBUTE_USER_STATUS
Deprecated. 
The name of the session attribute storing the user status


holder

protected SitemapConfigurationHolder holder
Deprecated. 
The manager for the authentication handlers


manager

protected ServiceManager manager
Deprecated. 
The Service Manager


resolver

protected SourceResolver resolver
Deprecated. 
The Source Resolver


context

protected Context context
Deprecated. 
The context


authenticators

protected Map authenticators
Deprecated. 
Instantiated authenticators


xpathProcessor

protected XPathProcessor xpathProcessor
Deprecated. 
The xpath processor

Constructor Detail

DefaultAuthenticationManager

public DefaultAuthenticationManager()
Deprecated. 
Method Detail

configure

public void configure(SitemapConfigurationHolder holder)
               throws ConfigurationException
Deprecated. 
Set the sitemap configuration containing the handlers

Specified by:
configure in interface SitemapConfigurable
Throws:
ConfigurationException

login

public UserHandler login(String handlerName,
                         String applicationName,
                         SourceParameters parameters)
                  throws ProcessingException
Deprecated. 
Description copied from interface: AuthenticationManager
Try to login the user. If the authentication is successful, the user handler is returned. If not, null is returned.

Specified by:
login in interface AuthenticationManager
Throws:
ProcessingException

releaseAuthenticator

protected void releaseAuthenticator(Authenticator authenticator,
                                    HandlerConfiguration config)
Deprecated. 
Release the used authenticator


lookupAuthenticator

protected Authenticator lookupAuthenticator(HandlerConfiguration config)
                                     throws ProcessingException
Deprecated. 
The authenticator used to authenticate a user

Throws:
ProcessingException

checkAuthentication

public boolean checkAuthentication(Redirector redirector,
                                   String handlerName,
                                   String applicationName)
                            throws IOException,
                                   ProcessingException
Deprecated. 
Description copied from interface: AuthenticationManager
Is the current user authenticated for the given handler? If the user is already authenticated, the RequestState is updated to the provided information (handler and application).

Specified by:
checkAuthentication in interface AuthenticationManager
Throws:
IOException
ProcessingException

getForwardingURI

public String getForwardingURI(String handlerName)
                        throws ProcessingException
Deprecated. 
Throws:
ProcessingException

isAuthenticated

public UserHandler isAuthenticated(String handlerName)
                            throws ProcessingException
Deprecated. 
Description copied from interface: AuthenticationManager
Is the current user authenticated for the given handler?

Specified by:
isAuthenticated in interface AuthenticationManager
Returns:
Returns the corresponding handler if the user is authenticated.
Throws:
ProcessingException

logout

public void logout(String handlerName,
                   int mode)
            throws ProcessingException
Deprecated. 
Description copied from interface: AuthenticationManager
Perform a logout of the user.

Specified by:
logout in interface AuthenticationManager
Throws:
ProcessingException

service

public void service(ServiceManager manager)
             throws ServiceException
Deprecated. 
Serviceable

Specified by:
service in interface Serviceable
Throws:
ServiceException

dispose

public void dispose()
Deprecated. 
Specified by:
dispose in interface Disposable

getState

public RequestState getState()
Deprecated. 
Get the current state of authentication

Specified by:
getState in interface AuthenticationManager

getRequestState

public static RequestState getRequestState(Context context)
Deprecated. 

contextualize

public void contextualize(Context context)
                   throws ContextException
Deprecated. 
Specified by:
contextualize in interface Contextualizable
Throws:
ContextException

setState

protected void setState(RequestState status)
Deprecated. 

createApplicationContext

public SessionContext createApplicationContext(String name,
                                               String loadURI,
                                               String saveURI)
                                        throws ProcessingException
Deprecated. 
Create Application Context. This context is destroyed when the user logs out of the handler

Specified by:
createApplicationContext in interface AuthenticationManager
Throws:
ProcessingException


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