Class PasswordPolicyDigitRuleImpl
- java.lang.Object
 - 
- org.camunda.bpm.engine.impl.identity.PasswordPolicyDigitRuleImpl
 
 
- 
- All Implemented Interfaces:
 PasswordPolicyRule
public class PasswordPolicyDigitRuleImpl extends Object implements PasswordPolicyRule
- Author:
 - Miklas Boskamp
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected intminDigitstatic StringPLACEHOLDER 
- 
Constructor Summary
Constructors Constructor Description PasswordPolicyDigitRuleImpl(int minDigit) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanexecute(String password)Checks the given password against this rule.Map<String,String>getParameters()Additional parameter that can be used to display a meaningful description.StringgetPlaceholder()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 Detail
- 
PLACEHOLDER
public static final String PLACEHOLDER
- See Also:
 - Constant Field Values
 
 
- 
minDigit
protected int minDigit
 
 - 
 
- 
Method Detail
- 
getPlaceholder
public String getPlaceholder()
Description copied from interface:PasswordPolicyRulePlaceholder 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:
 getPlaceholderin interfacePasswordPolicyRule- Returns:
 - the placeholder for the description text.
 
 
- 
getParameters
public Map<String,String> getParameters()
Description copied from interface:PasswordPolicyRuleAdditional parameter that can be used to display a meaningful description.- Specified by:
 getParametersin interfacePasswordPolicyRule- Returns:
 - a map of parameters
 
 
- 
execute
public boolean execute(String password)
Description copied from interface:PasswordPolicyRuleChecks the given password against this rule.Heads-up: The return value is not respected when
PasswordPolicyRule.execute(String, User)is implemented.- Specified by:
 executein interfacePasswordPolicyRule- Parameters:
 password- 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.
 
 - 
 
 -