Share via


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)

Inheritance Hierarchy

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

Syntax

public class DataProtectorTokenProvider<TUser> : DataProtectorTokenProvider<TUser, string>
where TUser : class, IUser<string>
generic<typename TUser>
where TUser : ref class, IUser<String^>
public ref class DataProtectorTokenProvider : DataProtectorTokenProvider<TUser, String^>
type DataProtectorTokenProvider<'TUser when 'TUser : not struct and IUser<string>> = 
    class
        inherit DataProtectorTokenProvider<'TUser, string>
    end
Public Class DataProtectorTokenProvider(Of TUser As { Class, IUser(Of String) })
    Inherits DataProtectorTokenProvider(Of TUser, String)

Type Parameters

  • TUser
    The type of the user in the token provider.

Constructors

Name Description
System_CAPS_pubmethod DataProtectorTokenProvider<TUser>(IDataProtector)

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

Properties

Name Description
System_CAPS_pubproperty Protector

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

System_CAPS_pubproperty TokenLifespan

Gets or sets the lifespan after which the token is considered expired.(Inherited from DataProtectorTokenProvider<TUser, TKey>.)

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GenerateAsync(String, UserManager<TUser, TKey>, TUser)

Asynchronously generates a protected string for a user.(Inherited from DataProtectorTokenProvider<TUser, TKey>.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod IsValidProviderForUserAsync(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_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod NotifyAsync(String, UserManager<TUser, TKey>, TUser)

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

System_CAPS_pubmethod ToString()

(Inherited from Object.)

System_CAPS_pubmethod ValidateAsync(String, String, UserManager<TUser, TKey>, TUser)

Asynchronously validates the token.(Inherited from DataProtectorTokenProvider<TUser, TKey>.)

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.Owin Namespace
ASP.NET Identity

Return to top