C# Класс Owin.Scim.Security.DefaultPasswordManager

The default behavior of this class uses Rfc2898DeriveBytes to create and verify password hashes.
Наследование: IManagePasswords
Показать файл Открыть проект

Открытые методы

Метод Описание
CreateHash ( string plainTextPassword ) : string

Returns the hashed value as hexidecimal.

MeetsRequirements ( string plainTextPassword ) : Task

Default password complexity requires a minimum of: 8 characters; 1 uppercase, 1 lowercase, 1 number, and 1 special character.

PasswordIsDifferent ( string plainTextPassword, string existingPasswordHash ) : bool

Checks to see whether plainTextPassword is different than the existingPasswordHash including checks for null.

VerifyHash ( string plainTextPassword, string passwordHash ) : bool

Verifies the hash of the plainTextPassword matches the specified passwordHash.

Защищенные методы

Метод Описание
CreateHashBytes ( byte plainTextPassword, byte salt = null ) : byte[]

Creates the hash bytes.

Описание методов

CreateHash() публичный Метод

Returns the hashed value as hexidecimal.
public CreateHash ( string plainTextPassword ) : string
plainTextPassword string
Результат string

CreateHashBytes() защищенный Метод

Creates the hash bytes.
protected CreateHashBytes ( byte plainTextPassword, byte salt = null ) : byte[]
plainTextPassword byte The plain text password.
salt byte The salt.
Результат byte[]

MeetsRequirements() публичный Метод

Default password complexity requires a minimum of: 8 characters; 1 uppercase, 1 lowercase, 1 number, and 1 special character.
public MeetsRequirements ( string plainTextPassword ) : Task
plainTextPassword string
Результат Task

PasswordIsDifferent() публичный Метод

Checks to see whether plainTextPassword is different than the existingPasswordHash including checks for null.
public PasswordIsDifferent ( string plainTextPassword, string existingPasswordHash ) : bool
plainTextPassword string The plain text password.
existingPasswordHash string The existing password hash.
Результат bool

VerifyHash() публичный Метод

Verifies the hash of the plainTextPassword matches the specified passwordHash.
/// plainTextPassword /// or /// passwordHash ///
public VerifyHash ( string plainTextPassword, string passwordHash ) : bool
plainTextPassword string The password to verify.
passwordHash string The password hash.
Результат bool