public class PasswordPolicyUserDataRuleImpl extends Object implements PasswordPolicyRule
| Modifier and Type | Field and Description |
|---|---|
static String |
PLACEHOLDER |
| Constructor and Description |
|---|
PasswordPolicyUserDataRuleImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
execute(String password)
Checks the given password against this rule.
|
boolean |
execute(String candidatePassword,
User user)
Checks the given password and the user 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.
|
boolean |
isNotBlank(String value) |
String |
upperCase(String string) |
public static final String PLACEHOLDER
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.public boolean execute(String candidatePassword, User user)
PasswordPolicyRuleexecute in interface PasswordPolicyRulecandidatePassword - which is checked against a password policyuser - to be taken into account when checking the candidate password. Can be null
when IdentityService.checkPassword(String, String) is called.true if the given password matches this rule.
false if the given password is not compliant with this
rule.public boolean isNotBlank(String value)
Copyright © 2022. All rights reserved.