use of org.passay.CharacterCharacteristicsRule in project dataverse by IQSS.
the class PasswordValidatorServiceBean method characterRule.
/**
* characterRule
* <p>
* Sets a this number of characteristics N from M rules.
*
* @return A CharacterCharacteristicsRule
*/
private CharacterCharacteristicsRule characterRule(List<CharacterRule> characterRules) {
final CharacterCharacteristicsRule characteristicsRule = new CharacterCharacteristicsRule();
characteristicsRule.setNumberOfCharacteristics(getNumberOfCharacteristics());
characteristicsRule.getRules().addAll(characterRules);
return characteristicsRule;
}
Aggregations