Class PasswordPolicyDigitRuleImpl
java.lang.Object
org.camunda.bpm.engine.impl.identity.PasswordPolicyDigitRuleImpl
- All Implemented Interfaces:
PasswordPolicyRule
- Author:
- Miklas Boskamp
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks the given password against this rule.Additional parameter that can be used to display a meaningful description.Placeholder string that can be used to display a description of this rule.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.camunda.bpm.engine.identity.PasswordPolicyRule
execute
-
Field Details
-
PLACEHOLDER
- See Also:
-
minDigit
protected int minDigit
-
-
Constructor Details
-
PasswordPolicyDigitRuleImpl
public PasswordPolicyDigitRuleImpl(int minDigit)
-
-
Method Details
-
getPlaceholder
Description copied from interface:PasswordPolicyRule
Placeholder string that can be used to display a description of this rule. The actual description text must be managed on the calling side.- Specified by:
getPlaceholder
in interfacePasswordPolicyRule
- Returns:
- the placeholder for the description text.
-
getParameters
Description copied from interface:PasswordPolicyRule
Additional parameter that can be used to display a meaningful description.- Specified by:
getParameters
in interfacePasswordPolicyRule
- Returns:
- a map of parameters
-
execute
Description copied from interface:PasswordPolicyRule
Checks the given password against this rule.Heads-up: The return value is not respected when
PasswordPolicyRule.execute(String, User)
is implemented.- Specified by:
execute
in interfacePasswordPolicyRule
- Parameters:
password
- which is checked against a password policy- Returns:
true
if the given password matches this rule.false
if the given password is not compliant with this rule.
-