1010import org .springframework .scheduling .annotation .EnableAsync ;
1111import org .springframework .security .authentication .AuthenticationManager ;
1212import org .springframework .security .config .annotation .authentication .builders .AuthenticationManagerBuilder ;
13+ import org .springframework .security .config .annotation .web .WebSecurityConfigurer ;
1314import org .springframework .security .config .annotation .web .builders .HttpSecurity ;
15+ import org .springframework .security .config .annotation .web .builders .WebSecurity ;
1416import org .springframework .security .config .annotation .web .configuration .EnableWebSecurity ;
1517import org .springframework .security .config .annotation .web .configuration .WebSecurityConfigurerAdapter ;
1618import org .springframework .security .core .userdetails .UserDetailsService ;
1719import org .springframework .security .crypto .bcrypt .BCryptPasswordEncoder ;
1820import org .springframework .security .crypto .password .PasswordEncoder ;
19- import org .springframework .security .crypto .password .Pbkdf2PasswordEncoder ;
2021import org .springframework .security .web .authentication .UsernamePasswordAuthenticationFilter ;
2122import org .springframework .web .servlet .config .annotation .EnableWebMvc ;
2223import org .woehlke .simpleworklist .application .SimpleworklistProperties ;
3536@ EnableConfigurationProperties ({
3637 SimpleworklistProperties .class
3738})
38- public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
39+ public class WebSecurityConfig extends WebSecurityConfigurerAdapter implements WebSecurityConfigurer < WebSecurity > {
3940
4041 private final AuthenticationManagerBuilder authenticationManagerBuilder ;
4142 //private final AuthenticationSuccessHandler loginSuccessHandler;
@@ -54,6 +55,16 @@ public WebSecurityConfig(
5455 this .simpleworklistProperties = simpleworklistProperties ;
5556 }
5657
58+ /*
59+ @Override
60+ public void init(WebSecurity builder) throws Exception {
61+
62+ }
63+ @Override
64+ public void configure(WebSecurity builder) throws Exception {
65+ }
66+ */
67+
5768 @ Override
5869 protected void configure (HttpSecurity http ) throws Exception {
5970 http
@@ -99,7 +110,7 @@ public UserDetailsService userDetailsService(){
99110 public PasswordEncoder encoder (){
100111 int strength = simpleworklistProperties .getWebSecurity ().getStrengthBCryptPasswordEncoder ();
101112 return new BCryptPasswordEncoder (strength );
102- /*Ü
113+ /*
103114 CharSequence secret=this.simpleworklistProperties.getWebSecurity().getSecret();
104115 int iterations=this.simpleworklistProperties.getWebSecurity().getIterations();
105116 int hashWidth=this.simpleworklistProperties.getWebSecurity().getHashWidth();
0 commit comments