Class AnyCharsMatcher
Matcher that matches a short run of arbitrary characters, optionally limited to characters that pass a filter, such as a few digits or symbols appended to a word.
Inherited Members
Namespace: Singulink.Cryptography.PasswordMatchers
Assembly: Singulink.Cryptography.PasswordMatcher.dll
Syntax
public sealed class AnyCharsMatcher : ValueMatcher
Remarks
Unlike other value matchers, the shortest match is produced first, so that as few arbitrary characters as possible are consumed and structured matchers (sequences, runs, years and words) get the chance to account for the rest.
Constructors
| Name | Description |
|---|---|
| AnyCharsMatcher(int, int, Func<char, bool>?, bool) | Initializes a new instance of the AnyCharsMatcher class. |
Properties
| Name | Description |
|---|---|
| CharFilter | Gets the filter that determines which characters can be matched, or null if any character can be matched. |
| MaxLength | Gets the maximum number of characters that are matched. |
| MinLength | Gets the minimum number of characters that are matched. |
Methods
| Name | Description |
|---|---|
| GetValueMatches(PasswordMatchContext) | Gets the contexts that result from matching the value at the current position of the given context, in the order they should be tried. Repeats and trailing separators do not need to be handled by the implementation. |