Show / Hide Table of Contents

Class LetterAndDigitPasswordProvider

Generates a password that only contains letters (a-z) and digits (1-9).

Inheritance
Object
PasswordProvider
LetterAndDigitPasswordProvider
Inherited Members
PasswordProvider.PasswordOptions
PasswordProvider.GeneratePassword()
Object.Equals(Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: IRM.AspNetCore.Identity
Assembly: IRM.AspNetCore.Identity.dll
Syntax
public class LetterAndDigitPasswordProvider : PasswordProvider, IPasswordProvider
Remarks

Since this class only generates passwords with letters and digits, the password will not be sufficient if Microsoft.AspNetCore.Identity.PasswordOptions.RequireNonAlphanumeric is true.

Constructors

LetterAndDigitPasswordProvider(IOptions<IdentityOptions>)

Creates a new instance of LetterAndDigitPasswordProvider.

Declaration
public LetterAndDigitPasswordProvider(IOptions<IdentityOptions> identityOptions)
Parameters
Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Identity.IdentityOptions> identityOptions

Options for identity containing password requirements.

Methods

GeneratePassword(Int32)

Generates a password with the specified length.

Declaration
protected override string GeneratePassword(int length)
Parameters
System.Int32 length

The length of the password.

Returns
String

The generated password.

Overrides
PasswordProvider.GeneratePassword(Int32)
Back to top Generated by DocFX