Method MatchPassword
MatchPassword(string, IEnumerable<ContextualSubject>?)
Evaluates a password, taking into account contextual subjects such as the user's name or the application name.
Declaration
PasswordMatch? MatchPassword(string password, IEnumerable<ContextualSubject>? subjects)
Parameters
| Type | Name | Description |
|---|---|---|
| string | password | The password to evaluate. |
| IEnumerable<ContextualSubject> | subjects | Contextual subjects that the password should not be composed of, or null if there are none. |
Returns
| Type | Description |
|---|---|
| PasswordMatch | A description of how the password matched, meaning it is composed entirely of common or contextual values in a predictable order and should be rejected, or null if it did not match. |