public interface PasswordPolicyRule
PasswordPolicy
. All rules attached to a
PasswordPolicy
must be matched by passwords for engine-managed users
to be policy compliant.Modifier and Type | Method and Description |
---|---|
boolean |
execute(String candidatePassword)
Checks the given password against this rule.
|
default 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.
|
String getPlaceholder()
Map<String,String> getParameters()
boolean execute(String candidatePassword)
Heads-up: The return value is not respected when
execute(String, User)
is implemented.
candidatePassword
- 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.default boolean execute(String candidatePassword, User user)
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.Copyright © 2022. All rights reserved.