Spring Security Framework

org.springframework.security.config
Class NamespaceAuthenticationManager

java.lang.Object
  extended by org.springframework.security.AbstractAuthenticationManager
      extended by org.springframework.security.providers.ProviderManager
          extended by org.springframework.security.config.NamespaceAuthenticationManager
All Implemented Interfaces:
BeanFactoryAware, InitializingBean, ApplicationEventPublisherAware, MessageSourceAware, AuthenticationManager

public class NamespaceAuthenticationManager
extends ProviderManager
implements BeanFactoryAware

Extended version of the default authentication manager which lazily initializes the list of AuthenticationProviders. This prevents some of the issues that have occurred with namespace configuration where early instantiation of a security interceptor has caused the AuthenticationManager and thus dependent beans (typically UserDetailsService implementations or DAOs) to be initialized too early.

Since:
2.0.4
Author:
Luke Taylor

Field Summary
 
Fields inherited from class org.springframework.security.providers.ProviderManager
messages
 
Constructor Summary
NamespaceAuthenticationManager()
           
 
Method Summary
 void afterPropertiesSet()
           
 List getProviders()
          Overridden to lazily-initialize the list of providers on first use.
 void setBeanFactory(BeanFactory beanFactory)
           
 void setProviderBeanNames(List provideBeanNames)
           
 
Methods inherited from class org.springframework.security.providers.ProviderManager
doAuthentication, getSessionController, setAdditionalExceptionMappings, setApplicationEventPublisher, setMessageSource, setProviders, setSessionController
 
Methods inherited from class org.springframework.security.AbstractAuthenticationManager
authenticate, setClearExtraInformation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NamespaceAuthenticationManager

public NamespaceAuthenticationManager()
Method Detail

setBeanFactory

public void setBeanFactory(BeanFactory beanFactory)
Specified by:
setBeanFactory in interface BeanFactoryAware

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface InitializingBean
Overrides:
afterPropertiesSet in class ProviderManager
Throws:
Exception

getProviders

public List getProviders()
Overridden to lazily-initialize the list of providers on first use.

Overrides:
getProviders in class ProviderManager

setProviderBeanNames

public void setProviderBeanNames(List provideBeanNames)

Spring Security Framework

Copyright © 2004-2010 SpringSource, Inc. All Rights Reserved.