Class ValueMatcher
Base class for matchers that consume text from the password, with optional support for matching consecutive repeats of the value and a trailing separator character.
Inheritance
Inherited Members
Namespace: Singulink.Cryptography.PasswordMatchers
Assembly: Singulink.Cryptography.PasswordMatcher.dll
Syntax
public abstract class ValueMatcher : PasswordMatcher
Remarks
Derived classes implement GetValueMatches(PasswordMatchContext) to match the value itself. Repeats and separators are handled by this class: after each value match, the exact characters that were matched may be matched again any number of times, and a single separator character (space, period, dash, underscore or comma) may follow each occurrence.
Constructors
| Name | Description |
|---|---|
| ValueMatcher(bool, bool) | Initializes a new instance of the ValueMatcher class. |
Properties
| Name | Description |
|---|---|
| MatchRepeats | Gets a value indicating whether consecutive repeats of the matched value are also matched. |
| MatchTrailingSeparator | Gets a value indicating whether a single separator character after the value is also matched. |
| Separators | Gets the characters that are matched as separators after a value when MatchTrailingSeparator is true. |
Methods
| Name | Description |
|---|---|
| GetMatchesCore(PasswordMatchContext) | Gets the contexts that result from matching this matcher at the current position of the given context, in the order they should be tried. |
| 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. |