Share via


TotpSecurityStampBasedTokenProvider<TUser> Class

Definition

Represents a token provider that generates time-based codes using the user's security stamp.

generic <typename TUser>
 where TUser : classpublic ref class TotpSecurityStampBasedTokenProvider abstract : Microsoft::AspNetCore::Identity::IUserTwoFactorTokenProvider<TUser>
public abstract class TotpSecurityStampBasedTokenProvider<TUser> : Microsoft.AspNetCore.Identity.IUserTwoFactorTokenProvider<TUser> where TUser : class
type TotpSecurityStampBasedTokenProvider<'User (requires 'User : null)> = class
    interface IUserTwoFactorTokenProvider<'User (requires 'User : null)>
Public MustInherit Class TotpSecurityStampBasedTokenProvider(Of TUser)
Implements IUserTwoFactorTokenProvider(Of TUser)

Type Parameters

TUser

The type encapsulating a user.

Inheritance
TotpSecurityStampBasedTokenProvider<TUser>
Derived
Implements

Constructors

TotpSecurityStampBasedTokenProvider<TUser>()

Methods

CanGenerateTwoFactorTokenAsync(UserManager<TUser>, TUser)

Returns a flag indicating whether the token provider can generate a token suitable for two-factor authentication token for the specified user.

GenerateAsync(String, UserManager<TUser>, TUser)

Generates a token for the specified user and purpose.

GetUserModifierAsync(String, UserManager<TUser>, TUser)

Returns a constant, provider and user unique modifier used for entropy in generated tokens from user information.

ValidateAsync(String, String, UserManager<TUser>, TUser)

Returns a flag indicating whether the specified token is valid for the given user and purpose.

Applies to