DpapiDataProtectionProvider Constructor
Namespace: Microsoft.Owin.Security.DataProtection
Assembly: Microsoft.Owin.Security (in Microsoft.Owin.Security.dll)
Overload List
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 |
See Also
DpapiDataProtectionProvider Class
Microsoft.Owin.Security.DataProtection Namespace
Return to top
DpapiDataProtectionProvider Constructor ()
Initializes a new DpapiDataProtectionProvider with a random application name. This is only useful to protect data for the duration of the current application execution.
Syntax
public DpapiDataProtectionProvider()
public:
DpapiDataProtectionProvider()
new : unit -> DpapiDataProtectionProvider
Public Sub New
Return to top
DpapiDataProtectionProvider Constructor (String)
Initializes a new DpapiDataProtectionProvider which uses the given appName as part of the protection algorithm
Syntax
public DpapiDataProtectionProvider(
string appName
)
public:
DpapiDataProtectionProvider(
String^ appName
)
new :
appName:string -> DpapiDataProtectionProvider
Public Sub New (
appName As String
)
Parameters
appName
Type: System.StringA user provided value needed to round-trip secured data. The default value comes from the IAppBuilder.Properties["owin.AppName"] when self-hosted.
Return to top