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)
Inheritance Hierarchy
System.Object
Microsoft.AspNet.Identity.TotpSecurityStampBasedTokenProvider<TUser, TKey>
Microsoft.AspNet.Identity.EmailTokenProvider<TUser, TKey>
Microsoft.AspNet.Identity.PhoneNumberTokenProvider<TUser, TKey>
Syntax
public class TotpSecurityStampBasedTokenProvider<TUser, TKey> : IUserTokenProvider<TUser, TKey>
where TUser : class, IUser<TKey>
where TKey : object, IEquatable<TKey>
generic<typename TUser, typename TKey>
where TUser : ref class, IUser<TKey>
where TKey : Object, IEquatable<TKey>
public ref class TotpSecurityStampBasedTokenProvider : IUserTokenProvider<TUser, TKey>
type TotpSecurityStampBasedTokenProvider<'TUser, 'TKey when 'TUser : not struct and IUser<'TKey> when 'TKey : Object and IEquatable<'TKey>> =
class
interface IUserTokenProvider<'TUser, 'TKey>
end
Public Class TotpSecurityStampBasedTokenProvider(Of TUser As { Class, IUser(Of TKey) }, TKey As { Object, IEquatable(Of TKey) })
Implements IUserTokenProvider(Of TUser, TKey)
Type Parameters
- TUser
The type of the user.
- TKey
The type of the key.
Constructors
Name | Description | |
---|---|---|
![]() |
TotpSecurityStampBasedTokenProvider<TUser, TKey>() | Initializes a new instance of the TotpSecurityStampBasedTokenProvider<TUser, TKey> class. |
Methods
Name | Description | |
---|---|---|
![]() |
Equals(Object) | (Inherited from Object.) |
![]() |
Finalize() | (Inherited from Object.) |
![]() |
GenerateAsync(String, UserManager<TUser, TKey>, TUser) | Asynchronously generates a token for the user using their security stamp. |
![]() |
GetHashCode() | (Inherited from Object.) |
![]() |
GetType() | (Inherited from Object.) |
![]() |
GetUserModifierAsync(String, UserManager<TUser, TKey>, TUser) | Asynchronously retrieves a user modifier. |
![]() |
IsValidProviderForUserAsync(UserManager<TUser, TKey>, TUser) | Asynchronously determines whether the provider can generate tokens for the user. By default this is equal to manager.SupportsUserSecurityStamp. |
![]() |
MemberwiseClone() | (Inherited from Object.) |
![]() |
NotifyAsync(String, UserManager<TUser, TKey>, TUser) | Asynchronously notifies a token provider. |
![]() |
ToString() | (Inherited from Object.) |
![]() |
ValidateAsync(String, String, UserManager<TUser, TKey>, TUser) | Asynchronously validates the token for the user. |
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Microsoft.AspNet.Identity Namespace
ASP.NET Identity
Return to top