PhoneNumberTokenProvider<TUser, TKey> Class
Represents a token provider that generates tokens from the user's security stamp and notifies a user via their phone number.
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.PhoneNumberTokenProvider<TUser, TKey>
Microsoft.AspNet.Identity.PhoneNumberTokenProvider<TUser>
public class PhoneNumberTokenProvider<TUser, TKey> : TotpSecurityStampBasedTokenProvider<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 PhoneNumberTokenProvider : TotpSecurityStampBasedTokenProvider<TUser, TKey>
type PhoneNumberTokenProvider<'TUser, 'TKey when 'TUser : not struct and IUser<'TKey> when 'TKey : Object and IEquatable<'TKey>> =
class
inherit TotpSecurityStampBasedTokenProvider<'TUser, 'TKey>
end
Public Class PhoneNumberTokenProvider(Of TUser As { Class, IUser(Of TKey) }, TKey As { Object, IEquatable(Of TKey) })
Inherits TotpSecurityStampBasedTokenProvider(Of TUser, TKey)
- TUser
The type of the user.
- TKey
The type of the keys.
Name | Description | |
---|---|---|
![]() |
PhoneNumberTokenProvider<TUser, TKey>() | Initializes a new instance of the PhoneNumberTokenProvider<TUser, TKey> class. |
Name | Description | |
---|---|---|
![]() |
MessageFormat | Gets or sets the message contents which should contain a format string which the token will be the only argument. |
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Microsoft.AspNet.Identity Namespace
ASP.NET Identity
Return to top