Class PasswordPolicyUserDataRuleImpl
- java.lang.Object
-
- org.camunda.bpm.engine.impl.identity.PasswordPolicyUserDataRuleImpl
-
- All Implemented Interfaces:
PasswordPolicyRule
public class PasswordPolicyUserDataRuleImpl extends Object implements PasswordPolicyRule
-
-
Field Summary
Fields Modifier and Type Field Description static String
PLACEHOLDER
-
Constructor Summary
Constructors Constructor Description PasswordPolicyUserDataRuleImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
execute(String password)
Checks the given password against this rule.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.boolean
isNotBlank(String value)
String
upperCase(String string)
-
-
-
Field Detail
-
PLACEHOLDER
public static final String PLACEHOLDER
- See Also:
- Constant Field Values
-
-
Method Detail
-
getPlaceholder
public String 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
public Map<String,String> 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
public boolean execute(String password)
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.
-
execute
public boolean execute(String candidatePassword, User user)
Description copied from interface:PasswordPolicyRule
Checks the given password and the user against this rule.- Specified by:
execute
in interfacePasswordPolicyRule
- Parameters:
candidatePassword
- which is checked against a password policyuser
- to be taken into account when checking the candidate password. Can benull
whenIdentityService.checkPassword(String, String)
is called.- Returns:
true
if the given password matches this rule.false
if the given password is not compliant with this rule.
-
isNotBlank
public boolean isNotBlank(String value)
-
-