java.lang.Object
me.gosimple.nbvcxz.matching.RepeatMatcher
- All Implemented Interfaces:
PasswordMatcher
public final class RepeatMatcher extends java.lang.Object implements PasswordMatcher
Look for every part of the password that is a repeat of the previous character.
- Author:
- Adam Brusselback
-
Constructor Summary
Constructors Constructor Description RepeatMatcher() -
Method Summary
Modifier and Type Method Description java.util.List<Match>match(Configuration configuration, java.lang.String password)Creates aListofMatchfrom the password.
-
Constructor Details
-
RepeatMatcher
public RepeatMatcher()
-
-
Method Details
-
match
Description copied from interface:PasswordMatcherCreates aListofMatchfrom the password.- Specified by:
matchin interfacePasswordMatcher- Parameters:
configuration- configuration for the matcher.password- password to match.- Returns:
- a
ListofMatches that this matcher found for the given password and configuration.
-