DpapiDataProtectionProvider Class

 

Used to provide the data protection services that are derived from the Data Protection API. It is the best choice of data protection when you application is not hosted by ASP.NET and all processes are running as the same domain identity.

Namespace:   Microsoft.Owin.Security.DataProtection
Assembly:  Microsoft.Owin.Security (in Microsoft.Owin.Security.dll)

Inheritance Hierarchy

System.Object
  Microsoft.Owin.Security.DataProtection.DpapiDataProtectionProvider

Syntax

public class DpapiDataProtectionProvider : IDataProtectionProvider
public ref class DpapiDataProtectionProvider : IDataProtectionProvider
type DpapiDataProtectionProvider = 
    class
        interface IDataProtectionProvider
    end
Public Class DpapiDataProtectionProvider
    Implements IDataProtectionProvider

Constructors

Name Description
System_CAPS_pubmethod DpapiDataProtectionProvider()

Initializes a new DpapiDataProtectionProvider with a random application name. This is only useful to protect data for the duration of the current application execution.

System_CAPS_pubmethod DpapiDataProtectionProvider(String)

Initializes a new DpapiDataProtectionProvider which uses the given appName as part of the protection algorithm

Methods

Name Description
System_CAPS_pubmethod Create(String[])

Returns a new instance of IDataProtection for the provider.

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

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.Owin.Security.DataProtection Namespace

Return to top