Show / Hide Table of Contents

Class ComplexPasswordProvider

Generates a password that only contains letters (a-z), digits (1-9) and common punctations characters (!@%&*()-+=;:.?).

Inheritance
Object
PasswordProvider
ComplexPasswordProvider
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 ComplexPasswordProvider : PasswordProvider, IPasswordProvider

Constructors

ComplexPasswordProvider(IOptions<IdentityOptions>)

Creates a new instance of ComplexPasswordProvider.

Declaration
public ComplexPasswordProvider(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