TwoFactorSecurityStampValidator<TUser> 类

定义

负责验证双因素标识 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

封装用户的类型。

继承
TwoFactorSecurityStampValidator<TUser>
实现

构造函数

TwoFactorSecurityStampValidator<TUser>(IOptions<SecurityStampValidatorOptions>, SignInManager<TUser>, ILoggerFactory)

创建 SecurityStampValidator<TUser> 的新实例。

TwoFactorSecurityStampValidator<TUser>(IOptions<SecurityStampValidatorOptions>, SignInManager<TUser>, ISystemClock, ILoggerFactory)
已过时.

创建 SecurityStampValidator<TUser> 的新实例。

TwoFactorSecurityStampValidator<TUser>(IOptions<SecurityStampValidatorOptions>, SignInManager<TUser>, ISystemClock)

创建 SecurityStampValidator<TUser> 的新实例。

属性

Clock
已过时.

ISystemClock

(继承自 SecurityStampValidator<TUser>)
Logger

ILogger获取用于记录消息的 。

(继承自 SecurityStampValidator<TUser>)
Options

SecurityStampValidatorOptions

(继承自 SecurityStampValidator<TUser>)
SignInManager

SignInManager。

(继承自 SecurityStampValidator<TUser>)
TimeProvider

TimeProvider

(继承自 SecurityStampValidator<TUser>)

方法

SecurityStampVerified(TUser, CookieValidatePrincipalContext)

验证安全标记时调用。

ValidateAsync(CookieValidatePrincipalContext)

将标识的安全标记作为异步操作进行验证,如果验证成功,则重新生成标识,否则拒绝该标识。

(继承自 SecurityStampValidator<TUser>)
VerifySecurityStamp(ClaimsPrincipal)

验证主体的安全标记,如果成功,则返回匹配的用户

适用于