Skip to content

Commit 75b3301

Browse files
author
Holger Steinhauer
committed
BAEL-1489: Clean up
1 parent 20ef3b0 commit 75b3301

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

‎spring-5-security/src/main/java/com/baeldung/passwordstorage/PasswordStorageWebSecurityConfigurer.java‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,7 @@ public PasswordEncoder passwordEncoder() {
4545
encoders.put("scrypt", new SCryptPasswordEncoder());
4646
encoders.put("SHA-256", new MessageDigestPasswordEncoder("SHA-256"));
4747

48-
// get an instance of the DelegatingPasswordEncoder, set up to use our instance as default encoder
4948
DelegatingPasswordEncoder delegatingPasswordEncoder = new DelegatingPasswordEncoder(encodingId, encoders);
50-
51-
// configure our instance as default encoder for actual matching
5249
delegatingPasswordEncoder.setDefaultPasswordEncoderForMatches(encoders.get(encodingId));
5350

5451
return delegatingPasswordEncoder;

0 commit comments

Comments
 (0)