public class DefaultPasswordValidator extends 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 |
---|---|
void |
validate(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(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 PasswordValidator
password
- the password valueentry
- user entryPasswordPolicyException
- if the password doesn't meet the quality contraintsCopyright © 2003–2020 The Apache Software Foundation. All rights reserved.