Class PasswordPolicySpecialCharacterRuleImpl

java.lang.Object
org.camunda.bpm.engine.impl.identity.PasswordPolicySpecialCharacterRuleImpl
All Implemented Interfaces:
PasswordPolicyRule

public class PasswordPolicySpecialCharacterRuleImpl extends Object implements PasswordPolicyRule
Author:
Miklas Boskamp
  • Field Details

  • Constructor Details

    • PasswordPolicySpecialCharacterRuleImpl

      public PasswordPolicySpecialCharacterRuleImpl(int minSpecial)
  • Method Details

    • 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 interface PasswordPolicyRule
      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 interface PasswordPolicyRule
      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 interface PasswordPolicyRule
      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.