1
0
mirror of synced 2026-08-05 01:36:56 +00:00

Remove LdapShaPasswordEncoder from core

Issue: gh-4674
This commit is contained in:
Rob Winch
2017-10-22 15:37:02 -05:00
parent 6a3e981c80
commit 3a4a32e654
11 changed files with 54 additions and 426 deletions
@@ -55,7 +55,7 @@ public class LdapShaPasswordEncoder implements PasswordEncoder {
// ~ Instance fields
// ================================================================================================
private BytesKeyGenerator saltGenerator = KeyGenerators.secureRandom();
private BytesKeyGenerator saltGenerator;
private boolean forceLowerCasePrefix;
@@ -63,6 +63,14 @@ public class LdapShaPasswordEncoder implements PasswordEncoder {
// ===================================================================================================
public LdapShaPasswordEncoder() {
this(KeyGenerators.secureRandom());
}
public LdapShaPasswordEncoder(BytesKeyGenerator saltGenerator) {
if(saltGenerator == null) {
throw new IllegalArgumentException("saltGenerator cannot be null");
}
this.saltGenerator = saltGenerator;
}
// ~ Methods