PhoneNumberTokenProvider<TUser> Class

 

Represents a TokenProvider 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)


public class PhoneNumberTokenProvider<TUser> : PhoneNumberTokenProvider<TUser, string>
where TUser : class, IUser<string>

Type Parameters

TUser

The type of the user.

NameDescription
System_CAPS_pubmethodPhoneNumberTokenProvider<TUser>()

Initializes a new instance of the PhoneNumberTokenProvider<TUser> class.

NameDescription
System_CAPS_pubpropertyMessageFormat

Gets or sets the message contents which should contain a format string which the token will be the only argument.(Inherited from PhoneNumberTokenProvider<TUser, TKey>.)

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.(Inherited from TotpSecurityStampBasedTokenProvider<TUser, TKey>.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

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

Asynchronously returns the phone number of the user for entropy in the token.(Inherited from PhoneNumberTokenProvider<TUser, TKey>.)

System_CAPS_pubmethodIsValidProviderForUserAsync(UserManager<TUser, TKey>, TUser)

Asynchronously determines whether the user has a phone number set.(Inherited from PhoneNumberTokenProvider<TUser, TKey>.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

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

Asynchronously notifies the user with a token via SMS using the MessageFormat.(Inherited from PhoneNumberTokenProvider<TUser, TKey>.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

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

Asynchronously validates the token for the user.(Inherited from TotpSecurityStampBasedTokenProvider<TUser, TKey>.)

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: