public class PasswordPolicySpecialCharacterRuleImpl extends Object implements PasswordPolicyRule
| Modifier and Type | Field and Description |
|---|---|
protected int |
minSpecial |
static String |
PLACEHOLDER |
static String |
SPECIALCHARACTERS |
| Constructor and Description |
|---|
PasswordPolicySpecialCharacterRuleImpl(int minSpecial) |
| 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.
|
public static final String SPECIALCHARACTERS
public static final String PLACEHOLDER
protected int minSpecial
public PasswordPolicySpecialCharacterRuleImpl(int minSpecial)
public String getPlaceholder()
PasswordPolicyRulegetPlaceholder in interface PasswordPolicyRulepublic Map<String,String> getParameters()
PasswordPolicyRulegetParameters in interface PasswordPolicyRulepublic boolean execute(String password)
PasswordPolicyRuleexecute in interface PasswordPolicyRulepassword - the string that should be checkedtrue if the given password matches this rule.
false if the given password is not compliant with this
rule.Copyright © 2021. All rights reserved.