org.squashtest.tm.service.security
public class AuthenticationManagerDelegator extends Object implements org.springframework.security.authentication.AuthenticationManager, org.springframework.beans.factory.BeanFactoryAware
AuthenticationManager which gets a delegate authentication provider from the bean
factory when it really needs it.
We need this to break a cycle between ProviderManager --> DaoAuthenticationProvider --> JdbcUserDetailsManager --> ProviderManager
Shamelessly pasted from package-private GlobalMethodSecurityBeanDefinitionParser.AuthenticationManagerDelegator class| Constructor and Description |
|---|
AuthenticationManagerDelegator(String authProviderBean) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.security.core.Authentication |
authenticate(org.springframework.security.core.Authentication authentication) |
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) |
public AuthenticationManagerDelegator(@NotNull
String authProviderBean)
public org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication)
authenticate in interface org.springframework.security.authentication.AuthenticationManagerpublic void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
throws org.springframework.beans.BeansException
setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAwareorg.springframework.beans.BeansExceptionCopyright © 2010-2014 Henix, henix.fr. All Rights Reserved.