List of usage examples for org.springframework.security.config.annotation.authentication.builders AuthenticationManagerBuilder AuthenticationManagerBuilder
AuthenticationManagerBuilder
From source file:net.przemkovv.sphinx.config.SecurityConfig.java
@Override @Bean/*from www . j ava2 s.c om*/ public AuthenticationManager authenticationManager() throws Exception { return new AuthenticationManagerBuilder().userDetailsService(customUserDetailsService) .passwordEncoder(new ShaPasswordEncoder()).and().build(); }