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 | |
---|---|---|
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. |
|
DpapiDataProtectionProvider(String) | Initializes a new DpapiDataProtectionProvider which uses the given appName as part of the protection algorithm |
Methods
Name | Description | |
---|---|---|
Create(String[]) | Returns a new instance of IDataProtection for the provider. |
|
Equals(Object) | (Inherited from Object.) |
|
Finalize() | (Inherited from Object.) |
|
GetHashCode() | (Inherited from Object.) |
|
GetType() | (Inherited from Object.) |
|
MemberwiseClone() | (Inherited from Object.) |
|
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