org.springframework.security.config
Class NamespaceAuthenticationManager
java.lang.Object
org.springframework.security.AbstractAuthenticationManager
org.springframework.security.providers.ProviderManager
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 AuthenticationProvider
s. 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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NamespaceAuthenticationManager
public NamespaceAuthenticationManager()
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)
Copyright © 2004-2010 SpringSource, Inc. All Rights Reserved.