@Deprecated @Override public GenericResponse checkPasswordResetToken(String token) { if (!usingDeprecatedPasswordEncoder()) { // We cannot proceed without a Customer when using the new PasswordEncoder throw new NoSuchBeanDefinitionException("This method requires the deprecated PasswordEncoder bean"); } return checkPasswordResetToken(token, null); }
/** * Delegates to either the new {@link PasswordEncoder} or the deprecated {@link org.springframework.security.authentication.encoding.PasswordEncoder PasswordEncoder}. * * @param rawPassword the unencoded password * @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 String encodePass(String rawPassword, Object salt) { if (usingDeprecatedPasswordEncoder()) { return passwordEncoder.encodePassword(rawPassword, salt); } else { return encodePassword(rawPassword); } }
/** * 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); } }
customerForgotPasswordSecurityTokenDao.saveToken(fpst); if (usingDeprecatedPasswordEncoder() && saltString != null) { token = token + '-' + saltString;
String salt = null; if (usingDeprecatedPasswordEncoder()) { String[] tokens = token.split("-"); if (tokens.length > 2) { if (!response.getHasErrors()) { if (customer == null) { if (!usingDeprecatedPasswordEncoder()) {