Example usage for org.springframework.security.authentication.dao DaoAuthenticationProvider afterPropertiesSet

List of usage examples for org.springframework.security.authentication.dao DaoAuthenticationProvider afterPropertiesSet

Introduction

In this page you can find the example usage for org.springframework.security.authentication.dao DaoAuthenticationProvider afterPropertiesSet.

Prototype

public final void afterPropertiesSet() throws Exception 

Source Link

Usage

From source file:org.lightadmin.core.config.context.LightAdminSecurityConfiguration.java

@Bean
@Autowired/*from   w w  w  .j ava  2  s . c om*/
public AuthenticationProvider authenticationProvider(UserDetailsService usersService) throws Exception {
    DaoAuthenticationProvider provider = new DaoAuthenticationProvider();
    provider.setPasswordEncoder(new ShaPasswordEncoder());
    provider.setUserDetailsService(usersService);
    provider.afterPropertiesSet();
    return provider;
}

From source file:nu.localhost.tapestry5.springsecurity.services.SecurityModule.java

@Marker(SpringSecurityServices.class)
public final AuthenticationProvider buildDaoAuthenticationProvider(final UserDetailsService userDetailsService,
        final PasswordEncoder passwordEncoder, final SaltSourceService saltSource) throws Exception {

    final DaoAuthenticationProvider provider = new DaoAuthenticationProvider();
    provider.setUserDetailsService(userDetailsService);
    provider.setPasswordEncoder(passwordEncoder);
    provider.setSaltSource(saltSource);//  w  w w.  j a v  a 2  s  .c  o  m
    provider.afterPropertiesSet();
    return provider;
}

From source file:ch.astina.hesperid.web.services.SecurityModule.java

/**
 * Retrieves user details from an <code>UserDetailsService</code>
 *//*from w w w  .j av a  2 s.co  m*/
@Marker(SpringSecurityServices.class)
public final AuthenticationProvider buildDaoAuthenticationProvider(final UserDetailsService userDetailsService,
        final PasswordEncoder passwordEncoder, final SaltSourceService saltSource) throws Exception {
    DaoAuthenticationProvider provider = new DaoAuthenticationProvider();
    provider.setUserDetailsService(userDetailsService);
    provider.setPasswordEncoder(passwordEncoder);
    provider.setSaltSource(saltSource);
    provider.afterPropertiesSet();
    return provider;
}