public class PasswordPolicyLowerCaseRuleImpl extends Object implements PasswordPolicyRule
Modifier and Type | Field and Description |
---|---|
protected int |
minLowerCase |
static String |
PLACEHOLDER |
Constructor and Description |
---|
PasswordPolicyLowerCaseRuleImpl(int minLowerCase) |
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, wait
execute
public static final String PLACEHOLDER
protected int minLowerCase
public PasswordPolicyLowerCaseRuleImpl(int minLowerCase)
public String getPlaceholder()
PasswordPolicyRule
getPlaceholder
in interface PasswordPolicyRule
public Map<String,String> getParameters()
PasswordPolicyRule
getParameters
in interface PasswordPolicyRule
public boolean execute(String password)
PasswordPolicyRule
Heads-up: The return value is not respected when
PasswordPolicyRule.execute(String, User)
is implemented.
execute
in interface PasswordPolicyRule
password
- 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.