Package org.passay

Class 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.
    Author:
    Middleware Services
    • Field Detail

      • ERROR_CODE_REVERSED

        public static final String ERROR_CODE_REVERSED
        Error code for matching reversed dictionary word.
        See Also:
        Constant Field Values
    • Constructor Detail

      • 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