@Test public void testPasswordEncoder() { assertNotNull(webSecurityConfig.sha()); assertEquals("SHA-256", webSecurityConfig.sha().getAlgorithm()); }
@Bean public ShaPasswordEncoder sha() { ShaPasswordEncoder shaPasswordEncoder = new ShaPasswordEncoder(256); return shaPasswordEncoder; }
WebSecurityConfig extends WebSecurityConfigurerAdapter { @Bean public ShaPasswordEncoder sha() { ShaPasswordEncoder shaPasswordEncoder = new ShaPasswordEncoder(256); return shaPasswordEncoder; } }
WebSecurityConfig extends WebSecurityConfigurerAdapter { @Bean public ShaPasswordEncoder sha() { ShaPasswordEncoder shaPasswordEncoder = new ShaPasswordEncoder(256); return shaPasswordEncoder; }  }
WebSecurityConfig extends WebSecurityConfigurerAdapter { @Bean public ShaPasswordEncoder sha() { ShaPasswordEncoder shaPasswordEncoder = new ShaPasswordEncoder(256); return shaPasswordEncoder; }  @Bean ShaPasswordEncoder sha(); }
WebSecurityConfig extends WebSecurityConfigurerAdapter { @Bean public ShaPasswordEncoder sha() { ShaPasswordEncoder shaPasswordEncoder = new ShaPasswordEncoder(256); return shaPasswordEncoder; }  @Bean ShaPasswordEncoder sha();  }