List of usage examples for org.springframework.security.authentication ProviderManager afterPropertiesSet
public void afterPropertiesSet() throws Exception
From source file:nu.localhost.tapestry5.springsecurity.services.SecurityModule.java
@Marker(SpringSecurityServices.class) public static AuthenticationManager buildAuthenticationManager(final List<AuthenticationProvider> providers) throws Exception { final ProviderManager manager = new ProviderManager(providers); manager.afterPropertiesSet(); return manager; }
From source file:ch.astina.hesperid.web.services.SecurityModule.java
/** * Iterates an <code>Authentication</code> request through a list of * <code>AuthenticationProvider</code>s. *//*from w w w .j a v a 2 s .c om*/ @Marker(SpringSecurityServices.class) public static AuthenticationManager buildProviderManager(final List<AuthenticationProvider> providers) throws Exception { ProviderManager manager = new ProviderManager(); manager.setProviders(providers); manager.afterPropertiesSet(); return manager; }
From source file:ru.anr.base.services.SecurityConfig.java
/** * Defining a {@link AuthenticationManager} bean * /*from w w w. j a va 2s . c o m*/ * @param messageSource * Message source instance * @return A bean instance * * @throws Exception * In case of ProviderManager initialization error */ @Bean(name = "authenticationManager") @DependsOn("messageSource") public AuthenticationManager authenticationManager(MessageSource messageSource) throws Exception { ProviderManager providerManager = new ProviderManager(providers); providerManager.setMessageSource(messageSource); providerManager.setAuthenticationEventPublisher(new DefaultAuthenticationEventPublisher()); providerManager.afterPropertiesSet(); return providerManager; }