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()
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.public boolean execute(String candidatePassword, User user)
PasswordPolicyRule
execute
in interface PasswordPolicyRule
candidatePassword
- 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.