BAEL-1489: Clean up

This commit is contained in:
Holger Steinhauer 2018-02-18 21:46:21 +00:00
parent 20ef3b0299
commit 75b3301cc3
1 changed files with 0 additions and 3 deletions

View File

@ -45,10 +45,7 @@ public class PasswordStorageWebSecurityConfigurer extends WebSecurityConfigurerA
encoders.put("scrypt", new SCryptPasswordEncoder());
encoders.put("SHA-256", new MessageDigestPasswordEncoder("SHA-256"));
// get an instance of the DelegatingPasswordEncoder, set up to use our instance as default encoder
DelegatingPasswordEncoder delegatingPasswordEncoder = new DelegatingPasswordEncoder(encodingId, encoders);
// configure our instance as default encoder for actual matching
delegatingPasswordEncoder.setDefaultPasswordEncoderForMatches(encoders.get(encodingId));
return delegatingPasswordEncoder;