Package com.nulabinc.zxcvbn.matchers
Class DictionaryMatcher
- java.lang.Object
-
- com.nulabinc.zxcvbn.matchers.BaseMatcher
-
- com.nulabinc.zxcvbn.matchers.DictionaryMatcher
-
- All Implemented Interfaces:
Matcher
public class DictionaryMatcher extends BaseMatcher
-
-
Constructor Summary
Constructors Constructor Description DictionaryMatcher(Context context, java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Integer>> rankedDictionaries)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<Match>
execute(java.lang.CharSequence password)
Analyzes the given password and returns a list of detected patterns asMatch
objects.-
Methods inherited from class com.nulabinc.zxcvbn.matchers.BaseMatcher
getContext, sorted
-
-
-
-
Constructor Detail
-
DictionaryMatcher
public DictionaryMatcher(Context context, java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Integer>> rankedDictionaries)
-
-
Method Detail
-
execute
public java.util.List<Match> execute(java.lang.CharSequence password)
Description copied from interface:Matcher
Analyzes the given password and returns a list of detected patterns asMatch
objects.- Parameters:
password
- the password to analyze for patterns.- Returns:
- a list of matches identifying patterns found within the password.
-
-