use of org.passay.RuleResultDetail in project dataverse by IQSS.
the class GoodStrengthRule method validate.
@Override
public RuleResult validate(PasswordData passwordData) {
final RuleResult result = super.validate(passwordData);
if (!result.isValid()) {
result.getDetails().clear();
result.getDetails().add(new RuleResultDetail(ERROR_CODE_GOODSTRENGTH, createRuleResultDetailParameters()));
}
return result;
}
Aggregations