PasswordValidator Class
Provides properties and methods that are used to validate some basic password policy like length and number of non alphanumerics.
Namespace: Microsoft.AspNet.Identity
Assembly: Microsoft.AspNet.Identity.Core (in Microsoft.AspNet.Identity.Core.dll)
Inheritance Hierarchy
System.Object
Microsoft.AspNet.Identity.PasswordValidator
Syntax
public class PasswordValidator : IIdentityValidator<string>
public ref class PasswordValidator : IIdentityValidator<String^>
type PasswordValidator =
class
interface IIdentityValidator<string>
end
Public Class PasswordValidator
Implements IIdentityValidator(Of String)
Constructors
Name | Description | |
---|---|---|
![]() |
PasswordValidator() | Initializes a new instance of the PasswordValidator class. |
Properties
Name | Description | |
---|---|---|
![]() |
RequireDigit | Gets or sets whether the password requires a numeric digit ('0' - '9'). |
![]() |
RequiredLength | Gets or sets the minimum required password length. |
![]() |
RequireLowercase | Gets or sets whether the password requires a lower case letter ('a' - 'z'). |
![]() |
RequireNonLetterOrDigit | Gets or sets whether the password requires a non-letter or digit character. |
![]() |
RequireUppercase | Gets or sets whether the password requires an upper case letter ('A' - 'Z'). |
Methods
Name | Description | |
---|---|---|
![]() |
Equals(Object) | (Inherited from Object.) |
![]() |
Finalize() | (Inherited from Object.) |
![]() |
GetHashCode() | (Inherited from Object.) |
![]() |
GetType() | (Inherited from Object.) |
![]() |
IsDigit(Char) | Determines whether the character is a digit between '0' and '9'. |
![]() |
IsLetterOrDigit(Char) | Determines whether the character is a letter or a digit. |
![]() |
IsLower(Char) | Determines whether the character is between 'a' and 'z'. |
![]() |
IsUpper(Char) | Determines whether the character is between 'A' and 'Z'. |
![]() |
MemberwiseClone() | (Inherited from Object.) |
![]() |
ToString() | (Inherited from Object.) |
![]() |
ValidateAsync(String) | Asynchronously ensures that the string is of the required length and meets the configured requirements. |
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Microsoft.AspNet.Identity Namespace
ASP.NET Identity
Return to top