public class CharacterClassBasedPasswordComplexitySpecification extends java.lang.Object implements PasswordComplexitySpecification
Constructor and Description |
---|
CharacterClassBasedPasswordComplexitySpecification(int passwordMinLength) |
Modifier and Type | Method and Description |
---|---|
void |
addSelectionSpecification(CharacterSelectionSpecification characterSelectionSpecification) |
java.util.List<CharacterSelectionSpecification> |
getCharacterSelectionSpecifications() |
java.util.List<java.lang.String> |
getErrorCause(java.lang.String password) |
PasswordGenerator |
getPasswordGenerator() |
int |
getPasswordMinLength() |
boolean |
isSatisfiedBy(java.lang.String password)
Checks whether the given password fulfills this specifications requirements
|
public CharacterClassBasedPasswordComplexitySpecification(int passwordMinLength)
public int getPasswordMinLength()
getPasswordMinLength
in interface PasswordComplexitySpecification
public void addSelectionSpecification(CharacterSelectionSpecification characterSelectionSpecification)
public java.util.List<CharacterSelectionSpecification> getCharacterSelectionSpecifications()
public boolean isSatisfiedBy(java.lang.String password)
isSatisfiedBy
in interface PasswordComplexitySpecification
password
- public java.util.List<java.lang.String> getErrorCause(java.lang.String password)
getErrorCause
in interface PasswordComplexitySpecification
public PasswordGenerator getPasswordGenerator()
getPasswordGenerator
in interface PasswordComplexitySpecification