/** * Delegates to either the new {@link PasswordEncoder} or the deprecated {@link org.springframework.security.authentication.encoding.PasswordEncoder PasswordEncoder}. * * @param rawPassword the unencoded password * @param encodedPassword the encoded password to compare rawPassword against * @param salt the optional salt * @return * @deprecated the new {@link org.springframework.security.crypto.password.PasswordEncoder PasswordEncoder} handles salting internally, this will be removed in 4.2 */ @Deprecated protected boolean isPassValid(String rawPassword, String encodedPassword, Object salt) { if (usingDeprecatedPasswordEncoder()) { return passwordEncoder.isPasswordValid(encodedPassword, rawPassword, salt); } else { return isPasswordValid(rawPassword, encodedPassword); } }