org.squashtest.tm.service.security
Class AuthenticationManagerDelegator

java.lang.Object
  extended by org.squashtest.tm.service.security.AuthenticationManagerDelegator
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.security.authentication.AuthenticationManager

public class AuthenticationManagerDelegator
extends Object
implements org.springframework.security.authentication.AuthenticationManager, org.springframework.beans.factory.BeanFactoryAware

Lazy implementation of 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

Author:
Luke Taylor, Gregory Fouquet

Constructor Summary
AuthenticationManagerDelegator(String authProviderBean)
           
 
Method Summary
 org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication)
           
 void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthenticationManagerDelegator

public AuthenticationManagerDelegator(@NotNull
                                      String authProviderBean)
Method Detail

authenticate

public org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication)
Specified by:
authenticate in interface org.springframework.security.authentication.AuthenticationManager

setBeanFactory

public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
                    throws org.springframework.beans.BeansException
Specified by:
setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAware
Throws:
org.springframework.beans.BeansException


Copyright © 2010-2013 Henix, henix.fr. All Rights Reserved.