public class NamespaceAuthenticationManager extends ProviderManager implements org.springframework.beans.factory.BeanFactoryAware
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.messages
Constructor and Description |
---|
NamespaceAuthenticationManager() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
java.util.List |
getProviders()
Overridden to lazily-initialize the list of providers on first use.
|
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) |
void |
setProviderBeanNames(java.util.List provideBeanNames) |
doAuthentication, getSessionController, setAdditionalExceptionMappings, setApplicationEventPublisher, setMessageSource, setProviders, setSessionController
authenticate, setClearExtraInformation
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
setBeanFactory
in interface org.springframework.beans.factory.BeanFactoryAware
public void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
afterPropertiesSet
in class ProviderManager
java.lang.Exception
public java.util.List getProviders()
getProviders
in class ProviderManager
public void setProviderBeanNames(java.util.List provideBeanNames)