Class CharacterClassBasedPasswordComplexitySpecification
java.lang.Object
net.datenwerke.rs.passwordpolicy.service.CharacterClassBasedPasswordComplexitySpecification
- All Implemented Interfaces:
PasswordComplexitySpecification
public class CharacterClassBasedPasswordComplexitySpecification
extends Object
implements PasswordComplexitySpecification
Specifies the desired complexity of a password by means of character classes
and the minimum number of characters from each class present in the password.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSelectionSpecification(CharacterSelectionSpecification characterSelectionSpecification) getErrorCause(String password) intbooleanisSatisfiedBy(String password) Checks whether the given password fulfills this specifications requirements
-
Constructor Details
-
CharacterClassBasedPasswordComplexitySpecification
public CharacterClassBasedPasswordComplexitySpecification(int passwordMinLength)
-
-
Method Details
-
getPasswordMinLength
public int getPasswordMinLength()- Specified by:
getPasswordMinLengthin interfacePasswordComplexitySpecification
-
addSelectionSpecification
public void addSelectionSpecification(CharacterSelectionSpecification characterSelectionSpecification) -
getCharacterSelectionSpecifications
-
isSatisfiedBy
Checks whether the given password fulfills this specifications requirements- Specified by:
isSatisfiedByin interfacePasswordComplexitySpecification- Parameters:
password-
-
getErrorCause
- Specified by:
getErrorCausein interfacePasswordComplexitySpecification
-
getPasswordGenerator
- Specified by:
getPasswordGeneratorin interfacePasswordComplexitySpecification
-