From 4b4807c1382a15150bdc838298408b9200572514 Mon Sep 17 00:00:00 2001 From: Vishal Puri Date: Thu, 14 Jun 2007 11:18:50 +0000 Subject: [PATCH] SEC-271: Removed unnecessary AuthenticationProcessingFilterDependenciesConfigurer --- ...rocessingFilterDependenciesConfigurer.java | 42 ------------------- 1 file changed, 42 deletions(-) delete mode 100644 sandbox/spring-security-config/src/main/java/org/acegisecurity/config/AuthenticationProcessingFilterDependenciesConfigurer.java diff --git a/sandbox/spring-security-config/src/main/java/org/acegisecurity/config/AuthenticationProcessingFilterDependenciesConfigurer.java b/sandbox/spring-security-config/src/main/java/org/acegisecurity/config/AuthenticationProcessingFilterDependenciesConfigurer.java deleted file mode 100644 index f52e3e7e16..0000000000 --- a/sandbox/spring-security-config/src/main/java/org/acegisecurity/config/AuthenticationProcessingFilterDependenciesConfigurer.java +++ /dev/null @@ -1,42 +0,0 @@ -/** - * - */ -package org.acegisecurity.config; - -import org.acegisecurity.AuthenticationManager; -import org.acegisecurity.ui.rememberme.RememberMeServices; -import org.acegisecurity.ui.webapp.AuthenticationProcessingFilter; -import org.springframework.beans.BeansException; -import org.springframework.beans.factory.config.BeanFactoryPostProcessor; -import org.springframework.beans.factory.config.ConfigurableListableBeanFactory; -import org.springframework.beans.factory.support.RootBeanDefinition; - -/** - * @author vpuri - * - */ -public class AuthenticationProcessingFilterDependenciesConfigurer implements BeanFactoryPostProcessor { - - // ~ Methods - // ================================================================================================ - public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException { - - String[] authenticationProcessingFilter = beanFactory.getBeanNamesForType(AuthenticationProcessingFilter.class); - - RootBeanDefinition def = (RootBeanDefinition) beanFactory.getBeanDefinition(authenticationProcessingFilter[0]); - - String[] remServiceNames = beanFactory.getBeanNamesForType(RememberMeServices.class); - - if (remServiceNames.length > 0) { - def.getPropertyValues().addPropertyValue("rememberMeServices", - (RootBeanDefinition) beanFactory.getBeanDefinition(remServiceNames[0])); - } - - String[] authManager = beanFactory.getBeanNamesForType(AuthenticationManager.class); - - RootBeanDefinition authenticationMechanism = (RootBeanDefinition) beanFactory.getBeanDefinition(authManager[0]); - - if (authManager.length > 0) - def.getPropertyValues().addPropertyValue("authenticationManager", authenticationMechanism); - } -}