TotpSecurityStampBasedTokenProvider<TUser, TKey> Class

 

Represents a TokenProvider that generates time based codes using the user security stamp.

Namespace:   Microsoft.AspNet.Identity
Assembly:  Microsoft.AspNet.Identity.Core (in Microsoft.AspNet.Identity.Core.dll)

System.Object
  Microsoft.AspNet.Identity.TotpSecurityStampBasedTokenProvider<TUser, TKey>
    Microsoft.AspNet.Identity.EmailTokenProvider<TUser, TKey>
    Microsoft.AspNet.Identity.PhoneNumberTokenProvider<TUser, TKey>

public class TotpSecurityStampBasedTokenProvider<TUser, TKey> : IUserTokenProvider<TUser, TKey>
where TUser : class, IUser<TKey>
where TKey : object, IEquatable<TKey>

Type Parameters

TUser

The type of the user.

TKey

The type of the key.

NameDescription
System_CAPS_pubmethodTotpSecurityStampBasedTokenProvider<TUser, TKey>()

Initializes a new instance of the TotpSecurityStampBasedTokenProvider<TUser, TKey> class.

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGenerateAsync(String, UserManager<TUser, TKey>, TUser)

Asynchronously generates a token for the user using their security stamp.

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodGetUserModifierAsync(String, UserManager<TUser, TKey>, TUser)

Asynchronously retrieves a user modifier.

System_CAPS_pubmethodIsValidProviderForUserAsync(UserManager<TUser, TKey>, TUser)

Asynchronously determines whether the provider can generate tokens for the user. By default this is equal to manager.SupportsUserSecurityStamp.

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodNotifyAsync(String, UserManager<TUser, TKey>, TUser)

Asynchronously notifies a token provider.

System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_pubmethodValidateAsync(String, String, UserManager<TUser, TKey>, TUser)

Asynchronously validates the token for the user.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: