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:
- org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationEventPublisherAware, org.springframework.context.MessageSourceAware, AuthenticationManager
public class NamespaceAuthenticationManager
- extends ProviderManager
- implements org.springframework.beans.factory.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
| 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(org.springframework.beans.factory.BeanFactory beanFactory)
- Specified by:
setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAware
afterPropertiesSet
public void afterPropertiesSet()
throws java.lang.Exception
- Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean- Overrides:
afterPropertiesSet in class ProviderManager
- Throws:
java.lang.Exception
getProviders
public java.util.List getProviders()
- Overridden to lazily-initialize the list of providers on first use.
- Overrides:
getProviders in class ProviderManager
setProviderBeanNames
public void setProviderBeanNames(java.util.List provideBeanNames)