public class DefaultPasswordValidator extends java.lang.Object implements PasswordValidator
| Modifier and Type | Field and Description |
|---|---|
static DefaultPasswordValidator |
INSTANCE
the default validator's instance
|
| Constructor and Description |
|---|
DefaultPasswordValidator()
Creates a new instance of DefaultPasswordValidator.
|
| Modifier and Type | Method and Description |
|---|---|
private void |
checkUsernameSubstring(java.lang.String password,
org.apache.directory.api.ldap.model.entry.Entry entry)
The password does not contain three letter (or more) tokens from the user's account name.
|
void |
validate(java.lang.String password,
org.apache.directory.api.ldap.model.entry.Entry entry)
checks if the given password meets the required quality constraints.
|
public static final DefaultPasswordValidator INSTANCE
public DefaultPasswordValidator()
public void validate(java.lang.String password,
org.apache.directory.api.ldap.model.entry.Entry entry)
throws PasswordPolicyException
Note: the length based validations are already done before calling this method
so the implementor should concentrate on the content checking.
validate in interface PasswordValidatorpassword - the password valueentry - user entryPasswordPolicyException - if the password doesn't meet the quality contraintsprivate void checkUsernameSubstring(java.lang.String password,
org.apache.directory.api.ldap.model.entry.Entry entry)
throws PasswordPolicyException
PasswordPolicyException