Show / Hide Table of Contents

Class IdentityPasswordProvider

Generates a password that fullfills the requirements defined in Microsoft.AspNetCore.Identity.PasswordOptions.

Inheritance
Object
PasswordProvider
IdentityPasswordProvider
Inherited Members
PasswordProvider.PasswordOptions
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 IdentityPasswordProvider : PasswordProvider, IPasswordProvider

Constructors

IdentityPasswordProvider(IOptions<IdentityOptions>)

Creates a new instance of IdentityPasswordProvider.

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

Options for identity containing password requirements.

Methods

GeneratePassword()

Generates a random password.

Declaration
public override string GeneratePassword()
Returns
String

A random password.

Overrides
PasswordProvider.GeneratePassword()

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