public class PasswordPolicyDigitRuleImpl extends Object implements PasswordPolicyRule
| Modifier and Type | Field and Description |
|---|---|
protected int |
minDigit |
static String |
PLACEHOLDER |
| Constructor and Description |
|---|
PasswordPolicyDigitRuleImpl(int minDigit) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
execute(String password)
Checks the given password against this rule.
|
Map<String,String> |
getParameters()
Additional parameter that can be used to display a meaningful description.
|
String |
getPlaceholder()
Placeholder string that can be used to display a description of this rule.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecutepublic static final String PLACEHOLDER
protected int minDigit
public String getPlaceholder()
PasswordPolicyRulegetPlaceholder in interface PasswordPolicyRulepublic Map<String,String> getParameters()
PasswordPolicyRulegetParameters in interface PasswordPolicyRulepublic boolean execute(String password)
PasswordPolicyRuleHeads-up: The return value is not respected when
PasswordPolicyRule.execute(String, User) is implemented.
execute in interface PasswordPolicyRulepassword - which is checked against a password policytrue if the given password matches this rule.
false if the given password is not compliant with this
rule.Copyright © 2022. All rights reserved.