Package org.camunda.bpm.engine.identity
Interface PasswordPolicyRule
-
- All Known Implementing Classes:
PasswordPolicyDigitRuleImpl,PasswordPolicyLengthRuleImpl,PasswordPolicyLowerCaseRuleImpl,PasswordPolicySpecialCharacterRuleImpl,PasswordPolicyUpperCaseRuleImpl,PasswordPolicyUserDataRuleImpl
public interface PasswordPolicyRuleDescribes a rule of aPasswordPolicy. All rules attached to aPasswordPolicymust be matched by passwords for engine-managed users to be policy compliant.- Author:
- Miklas Boskamp
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description booleanexecute(java.lang.String candidatePassword)Checks the given password against this rule.default booleanexecute(java.lang.String candidatePassword, User user)Checks the given password and the user against this rule.java.util.Map<java.lang.String,java.lang.String>getParameters()Additional parameter that can be used to display a meaningful description.java.lang.StringgetPlaceholder()Placeholder string that can be used to display a description of this rule.
-
-
-
Method Detail
-
getPlaceholder
java.lang.String getPlaceholder()
Placeholder string that can be used to display a description of this rule. The actual description text must be managed on the calling side.- Returns:
- the placeholder for the description text.
-
getParameters
java.util.Map<java.lang.String,java.lang.String> getParameters()
Additional parameter that can be used to display a meaningful description.- Returns:
- a map of parameters
-
execute
boolean execute(java.lang.String candidatePassword)
Checks the given password against this rule.Heads-up: The return value is not respected when
execute(String, User)is implemented.- Parameters:
candidatePassword- which is checked against a password policy- Returns:
trueif the given password matches this rule.falseif the given password is not compliant with this rule.
-
execute
default boolean execute(java.lang.String candidatePassword, User user)Checks the given password and the user against this rule.- Parameters:
candidatePassword- which is checked against a password policyuser- to be taken into account when checking the candidate password. Can benullwhenIdentityService.checkPassword(String, String)is called.- Returns:
trueif the given password matches this rule.falseif the given password is not compliant with this rule.
-
-