PasswordValidator<TUser> Class

Definition

Provides the default password policy for Identity.

C#
public class PasswordValidator<TUser> : Microsoft.AspNetCore.Identity.IPasswordValidator<TUser> where TUser : class

Type Parameters

TUser

The type that represents a user.

Inheritance
PasswordValidator<TUser>
Implements

Constructors

Properties

Describer

Gets the IdentityErrorDescriber used to supply error text.

Methods

IsDigit(Char)

Returns a flag indicating whether the supplied character is a digit.

IsLetterOrDigit(Char)

Returns a flag indicating whether the supplied character is an ASCII letter or digit.

IsLower(Char)

Returns a flag indicating whether the supplied character is a lower case ASCII letter.

IsUpper(Char)

Returns a flag indicating whether the supplied character is an upper case ASCII letter.

ValidateAsync(UserManager<TUser>, TUser, String)

Validates a password as an asynchronous operation.

Applies to

Product Versions
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0