Class PasswordProvider
Base class for making it easier to implement a IPasswordProvider that fulfills the requirements defined in PasswordOptions.
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: IRM.AspNetCore.Identity
Assembly: IRM.AspNetCore.Identity.dll
Syntax
public abstract class PasswordProvider : IPasswordProvider
Constructors
PasswordProvider(IOptions<IdentityOptions>)
Creates a new instance of PasswordProvider.
Declaration
protected PasswordProvider(IOptions<IdentityOptions> identityOptions)
Parameters
Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Identity.IdentityOptions>
identityOptions
Options for identity containing password requirements. |
Properties
PasswordOptions
Gets the configured password options.
Declaration
protected PasswordOptions PasswordOptions { get; }
Property Value
Microsoft.AspNetCore.Identity.PasswordOptions
|
Methods
GeneratePassword()
Generates a random password.
Declaration
public virtual string GeneratePassword()
Returns
String
A random password. |
Implements
GeneratePassword(Int32)
Generates a password with the specified length.
Declaration
protected abstract string GeneratePassword(int length)
Parameters
System.Int32
length
The length of the password. |
Returns
String
The generated password. |