Class PasswordPolicyUserDataRuleImpl
- java.lang.Object
-
- org.camunda.bpm.engine.impl.identity.PasswordPolicyUserDataRuleImpl
-
- All Implemented Interfaces:
PasswordPolicyRule
public class PasswordPolicyUserDataRuleImpl extends java.lang.Object implements PasswordPolicyRule
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPLACEHOLDER
-
Constructor Summary
Constructors Constructor Description PasswordPolicyUserDataRuleImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanexecute(java.lang.String password)Checks the given password against this rule.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.booleanisNotBlank(java.lang.String value)java.lang.StringupperCase(java.lang.String string)
-
-
-
Field Detail
-
PLACEHOLDER
public static final java.lang.String PLACEHOLDER
- See Also:
- Constant Field Values
-
-
Method Detail
-
getPlaceholder
public java.lang.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 java.util.Map<java.lang.String,java.lang.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(java.lang.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.
-
execute
public boolean execute(java.lang.String candidatePassword, User user)Description copied from interface:PasswordPolicyRuleChecks the given password and the user against this rule.- Specified by:
executein interfacePasswordPolicyRule- 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.
-
upperCase
public java.lang.String upperCase(java.lang.String string)
-
isNotBlank
public boolean isNotBlank(java.lang.String value)
-
-