Class PasswordMatchEvaluator
Evaluates passwords against the matchers supplied by an IPasswordMatchersProvider.
Implements
Namespace: Singulink.Cryptography
Assembly: Singulink.Cryptography.PasswordMatcher.dll
Syntax
public class PasswordMatchEvaluator : IPasswordMatchEvaluator
Remarks
Evaluators are immutable and safe to share between threads. Default uses Default and is suitable for most applications.
Constructors
| Name | Description |
|---|---|
| PasswordMatchEvaluator(IPasswordMatchersProvider, int) | Initializes a new instance of the PasswordMatchEvaluator class. |
Fields
| Name | Description |
|---|---|
| DefaultMaxPasswordLength | The default value of MaxPasswordLength. |
Properties
| Name | Description |
|---|---|
| Default | Gets the default evaluator, which uses Default and DefaultMaxPasswordLength. |
| MatchersProvider | Gets the provider that supplies the matchers used to evaluate passwords. |
| MaxPasswordLength | Gets the maximum length of password that is evaluated. Longer passwords are reported as not matching without being evaluated. |
Methods
| Name | Description |
|---|---|
| MatchPassword(string, IEnumerable<ContextualSubject>?) | Evaluates a password, taking into account contextual subjects such as the user's name or the application name. |