I use Spring MVC + Security and to display bootstrap
@Configuration @EnableWebSecurity @EnableGlobalMethodSecurity(securedEnabled = true, prePostEnabled = true) @ComponentScan("ru.skanerxxl.rambler") public class SecurityConfig extends WebSecurityConfigurerAdapter { @Autowired public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception { auth.userDetailsService(serviceSecurity) .passwordEncoder(new ShaPasswordEncoder()); } }
Here the user's password is decoded.
How to connect SHA1 in order to encode a password during registration?