-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #165 from nulab/move-matcher-interface
refactor: Deprecate com.nulabinc.zxcvbn.Matcher and introduce new interface in com.nulabinc.zxcvbn.matchers
- Loading branch information
Showing
4 changed files
with
32 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.nulabinc.zxcvbn.matchers; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* Represents a matcher responsible for identifying patterns within passwords. | ||
* | ||
* <p>Implementations of this interface provide specific matching strategies to detect various | ||
* patterns such as dictionary words, sequences, and spatial patterns. | ||
* | ||
* @see Match | ||
*/ | ||
public interface Matcher { | ||
/** | ||
* Analyzes the given password and returns a list of detected patterns as {@link Match} objects. | ||
* | ||
* @param password the password to analyze for patterns. | ||
* @return a list of matches identifying patterns found within the password. | ||
*/ | ||
List<Match> execute(CharSequence password); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters