DataProtectorTokenProvider<TUser> Class

 

Represents a token provider that uses an IDataProtector to generate encrypted tokens based off of the security stamp.

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

System.Object
  Microsoft.AspNet.Identity.Owin.DataProtectorTokenProvider<TUser, TKey>
    Microsoft.AspNet.Identity.Owin.DataProtectorTokenProvider<TUser>

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

Type Parameters

TUser

The type of the user in the token provider.

NameDescription
System_CAPS_pubmethodDataProtectorTokenProvider<TUser>(IDataProtector)

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

NameDescription
System_CAPS_pubpropertyProtector

Gets the IDataProtector for the token.(Inherited from DataProtectorTokenProvider<TUser, TKey>.)

System_CAPS_pubpropertyTokenLifespan

Gets or sets the lifespan after which the token is considered expired.(Inherited from DataProtectorTokenProvider<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 protected string for a user.(Inherited from DataProtectorTokenProvider<TUser, TKey>.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodIsValidProviderForUserAsync(UserManager<TUser, TKey>, TUser)

Asynchronously determines whether the provider can be used to generate tokens for this user.(Inherited from DataProtectorTokenProvider<TUser, TKey>.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

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

Asynchronously notifies a user.(Inherited from DataProtectorTokenProvider<TUser, TKey>.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

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

Asynchronously validates the token.(Inherited from DataProtectorTokenProvider<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: