Class DictionarySubstringRule

java.lang.Object
org.passay.rule.AbstractDictionaryRule
org.passay.rule.DictionarySubstringRule
All Implemented Interfaces:
Rule

public class DictionarySubstringRule extends AbstractDictionaryRule
Rule for determining if a password contains a dictionary word with optional checking for reversed words.
  • Field Details

    • ERROR_CODE

      public static final String ERROR_CODE
      Error code for matching dictionary word.
      See Also:
    • ERROR_CODE_REVERSED

      public static final String ERROR_CODE_REVERSED
      Error code for matching reversed dictionary word.
      See Also:
  • Constructor Details

    • DictionarySubstringRule

      public DictionarySubstringRule(Dictionary dict)
      Creates a new dictionary substring rule. The dictionary should be ready to use when passed to this constructor.
      Parameters:
      dict - to use for searching
    • DictionarySubstringRule

      public DictionarySubstringRule(Dictionary dict, boolean matchBackwards)
      Creates a new dictionary substring rule. The dictionary should be ready to use when passed to this constructor.
      Parameters:
      dict - to use for searching
      matchBackwards - whether to match dictionary words backwards
  • Method Details