Share via


PasswordValidator<TUser> Class

Definition

Provides the default password policy for Identity.

generic <typename TUser>
 where TUser : classpublic ref class PasswordValidator : Microsoft::AspNetCore::Identity::IPasswordValidator<TUser>
public class PasswordValidator<TUser> : Microsoft.AspNetCore.Identity.IPasswordValidator<TUser> where TUser : class
type PasswordValidator<'User (requires 'User : null)> = class
    interface IPasswordValidator<'User (requires 'User : null)>
Public Class PasswordValidator(Of TUser)
Implements IPasswordValidator(Of TUser)

Type Parameters

TUser

The type that represents a user.

Inheritance
PasswordValidator<TUser>
Implements

Constructors

PasswordValidator<TUser>(IdentityErrorDescriber)

Constructions a new instance of PasswordValidator<TUser>.

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