int index = storedBase64.indexOf('}');
if (index > 0) {
passwordScheme = storedBase64.substring(1, index);
int index = storedBase64.indexOf('}');
if (index > 0) {
passwordScheme = storedBase64.substring(1, index);
char[] passwordValue = DigestUtils.bytesToChars((byte[]) value);
byte[] valueBytes;
if (DigestUtils.PASSWORD_SCHEME_SHA.equals(passwordScheme)) {
char[] passwordValue = DigestUtils.bytesToChars((byte[]) value);
byte[] valueBytes;
if (DigestUtils.PASSWORD_SCHEME_SHA.equals(passwordScheme)) {
- valueBytes = DigestUtils.toPasswordScheme(passwordScheme, passwordValue, null, null,
- null);
+ valueBytes = DigestUtils.toPasswordScheme(passwordScheme, passwordValue, null, null, null);
} else if (DigestUtils.PASSWORD_SCHEME_PBKDF2_SHA256.equals(passwordScheme)) {
// see https://www.thesubtlety.com/post/a-389-ds-pbkdf2-password-checker/
byte[] iterationsArr = Arrays.copyOfRange(storedValueBytes, 0, 4);
} else if (DigestUtils.PASSWORD_SCHEME_PBKDF2_SHA256.equals(passwordScheme)) {
// see https://www.thesubtlety.com/post/a-389-ds-pbkdf2-password-checker/
byte[] iterationsArr = Arrays.copyOfRange(storedValueBytes, 0, 4);