TwoFactorSecurityStampValidator<TUser> 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
负责验证双因素标识 Cookie 安全标记。
generic <typename TUser>
where TUser : classpublic ref class TwoFactorSecurityStampValidator : Microsoft::AspNetCore::Identity::SecurityStampValidator<TUser>, Microsoft::AspNetCore::Identity::ITwoFactorSecurityStampValidator
public class TwoFactorSecurityStampValidator<TUser> : Microsoft.AspNetCore.Identity.SecurityStampValidator<TUser>, Microsoft.AspNetCore.Identity.ITwoFactorSecurityStampValidator where TUser : class
type TwoFactorSecurityStampValidator<'User (requires 'User : null)> = class
inherit SecurityStampValidator<'User (requires 'User : null)>
interface ITwoFactorSecurityStampValidator
interface ISecurityStampValidator
type TwoFactorSecurityStampValidator<'User (requires 'User : null)> = class
inherit SecurityStampValidator<'User (requires 'User : null)>
interface ISecurityStampValidator
interface ITwoFactorSecurityStampValidator
Public Class TwoFactorSecurityStampValidator(Of TUser)
Inherits SecurityStampValidator(Of TUser)
Implements ITwoFactorSecurityStampValidator
类型参数
- TUser
封装用户的类型。
- 继承
- 实现
构造函数
属性
Clock |
已过时.
(继承自 SecurityStampValidator<TUser>)
|
Logger |
ILogger获取用于记录消息的 。 (继承自 SecurityStampValidator<TUser>) |
Options |
SecurityStampValidatorOptions。 (继承自 SecurityStampValidator<TUser>) |
SignInManager |
SignInManager。 (继承自 SecurityStampValidator<TUser>) |
TimeProvider | (继承自 SecurityStampValidator<TUser>) |
方法
SecurityStampVerified(TUser, CookieValidatePrincipalContext) |
验证安全标记时调用。 |
ValidateAsync(CookieValidatePrincipalContext) |
将标识的安全标记作为异步操作进行验证,如果验证成功,则重新生成标识,否则拒绝该标识。 (继承自 SecurityStampValidator<TUser>) |
VerifySecurityStamp(ClaimsPrincipal) |
验证主体的安全标记,如果成功,则返回匹配的用户 |