DataProtectorTokenProvider<TUser, TKey> 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, 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_pubmethodDataProtectorTokenProvider<TUser, TKey>(IDataProtector)

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

NameDescription
System_CAPS_pubpropertyProtector

Gets the IDataProtector for the token.

System_CAPS_pubpropertyTokenLifespan

Gets or sets the lifespan after which the token is considered expired.

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.

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.

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

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

Asynchronously notifies a user.

System_CAPS_pubmethodToString()

(Inherited from Object.)

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

Asynchronously validates the token.

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: