Package org.passay

Class DictionaryRule

  • All Implemented Interfaces:
    Rule

    public class DictionaryRule
    extends AbstractDictionaryRule
    Rule for determining if a password matches a dictionary word. This rule will optionally also check 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

      • DictionaryRule

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