Search in sources :

Example 1 with CharacterCharacteristicsRule

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;
}
Also used : CharacterCharacteristicsRule(org.passay.CharacterCharacteristicsRule)

Aggregations

CharacterCharacteristicsRule (org.passay.CharacterCharacteristicsRule)1