Class AdminPasswordHasher
- Namespace
- Kentico.Membership
- Assembly
- Kentico.Membership.dll
Provides methods for hashing passwords.
public sealed class AdminPasswordHasher
- Inheritance
-
objectAdminPasswordHasher
- Extension Methods
Constructors
AdminPasswordHasher()
Initializes a new instance of AdminPasswordHasher.
public AdminPasswordHasher()
Methods
HashPassword(AdminApplicationUser, string)
Returns a hashed representation of the supplied password for the specified user.
public string HashPassword(AdminApplicationUser user, string password)
Parameters
userAdminApplicationUserThe user whose password is to be hashed.
passwordstringThe password to hash.
Returns
- string
A hashed representation of the supplied
passwordfor the specifieduser.
Exceptions
- ArgumentNullException
user
VerifyHashedPassword(AdminApplicationUser, string, string)
Returns a Microsoft.AspNetCore.Identity.PasswordVerificationResult indicating the result of a password hash comparison.
public PasswordVerificationResult VerifyHashedPassword(AdminApplicationUser user, string hashedPassword, string providedPassword)
Parameters
userAdminApplicationUserThe user whose password should be verified.
hashedPasswordstringThe hash value for a user's stored password.
providedPasswordstringThe password supplied for comparison.
Returns
- PasswordVerificationResult
A Microsoft.AspNetCore.Identity.PasswordVerificationResult indicating the result of a password hash comparison.
See Also
IPasswordHasher<TUser>