Class PasswordPolicyUserDataRuleImpl

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String PLACEHOLDER  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean execute​(java.lang.String password)
      Checks the given password against this rule.
      boolean execute​(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.String getPlaceholder()
      Placeholder string that can be used to display a description of this rule.
      boolean isNotBlank​(java.lang.String value)  
      java.lang.String upperCase​(java.lang.String string)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PasswordPolicyUserDataRuleImpl

        public PasswordPolicyUserDataRuleImpl()
    • Method Detail

      • getPlaceholder

        public java.lang.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 java.util.Map<java.lang.String,​java.lang.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​(java.lang.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.
      • execute

        public boolean execute​(java.lang.String candidatePassword,
                               User user)
        Description copied from interface: PasswordPolicyRule
        Checks the given password and the user against this rule.
        Specified by:
        execute in interface PasswordPolicyRule
        Parameters:
        candidatePassword - which is checked against a password policy
        user - to be taken into account when checking the candidate password. Can be null when IdentityService.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.
      • upperCase

        public java.lang.String upperCase​(java.lang.String string)
      • isNotBlank

        public boolean isNotBlank​(java.lang.String value)