DataProtectionProvider.Create 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
Create(DirectoryInfo) |
创建一个 DataProtectionProvider 给定的密钥存储位置。 |
Create(String) |
创建一个 , DataProtectionProvider 用于根据平台和操作系统将密钥存储在某个位置。 |
Create(DirectoryInfo, Action<IDataProtectionBuilder>) |
创建一个 DataProtectionProvider 给定的位置,用于存储密钥和可选的配置回调。 |
Create(DirectoryInfo, X509Certificate2) |
创建一个 DataProtectionProvider 给定的存储密钥的位置,以及 X509Certificate2 用于加密密钥的 。 |
Create(String, X509Certificate2) |
创建一个 , DataProtectionProvider 它将密钥存储在基于平台和操作系统的位置,并使用给定 X509Certificate2 的 来加密密钥。 |
Create(DirectoryInfo, Action<IDataProtectionBuilder>, X509Certificate2) |
创建一个 DataProtectionProvider 给定的存储密钥的位置、可选的配置回调和 X509Certificate2 用于加密密钥的 。 |
Create(DirectoryInfo)
- Source:
- DataProtectionProvider.cs
- Source:
- DataProtectionProvider.cs
- Source:
- DataProtectionProvider.cs
- Source:
- DataProtectionProvider.cs
- Source:
- DataProtectionProvider.cs
- Source:
- DataProtectionProvider.cs
- Source:
- DataProtectionProvider.cs
- Source:
- DataProtectionProvider.cs
创建一个 DataProtectionProvider 给定的密钥存储位置。
public:
static Microsoft::AspNetCore::DataProtection::IDataProtectionProvider ^ Create(System::IO::DirectoryInfo ^ keyDirectory);
public static Microsoft.AspNetCore.DataProtection.IDataProtectionProvider Create (System.IO.DirectoryInfo keyDirectory);
static member Create : System.IO.DirectoryInfo -> Microsoft.AspNetCore.DataProtection.IDataProtectionProvider
Public Shared Function Create (keyDirectory As DirectoryInfo) As IDataProtectionProvider
参数
- keyDirectory
- DirectoryInfo
DirectoryInfo应在其中存储密钥的 。 这可能表示本地磁盘或 UNC 共享上的目录。
返回
适用于
Create(String)
- Source:
- DataProtectionProvider.cs
- Source:
- DataProtectionProvider.cs
- Source:
- DataProtectionProvider.cs
- Source:
- DataProtectionProvider.cs
- Source:
- DataProtectionProvider.cs
- Source:
- DataProtectionProvider.cs
- Source:
- DataProtectionProvider.cs
- Source:
- DataProtectionProvider.cs
创建一个 , DataProtectionProvider 用于根据平台和操作系统将密钥存储在某个位置。
public:
static Microsoft::AspNetCore::DataProtection::IDataProtectionProvider ^ Create(System::String ^ applicationName);
public static Microsoft.AspNetCore.DataProtection.IDataProtectionProvider Create (string applicationName);
static member Create : string -> Microsoft.AspNetCore.DataProtection.IDataProtectionProvider
Public Shared Function Create (applicationName As String) As IDataProtectionProvider
参数
- applicationName
- String
将此应用程序与计算机上的所有其他应用程序唯一区分的标识符。
返回
适用于
Create(DirectoryInfo, Action<IDataProtectionBuilder>)
- Source:
- DataProtectionProvider.cs
- Source:
- DataProtectionProvider.cs
- Source:
- DataProtectionProvider.cs
- Source:
- DataProtectionProvider.cs
- Source:
- DataProtectionProvider.cs
- Source:
- DataProtectionProvider.cs
- Source:
- DataProtectionProvider.cs
- Source:
- DataProtectionProvider.cs
创建一个 DataProtectionProvider 给定的位置,用于存储密钥和可选的配置回调。
public:
static Microsoft::AspNetCore::DataProtection::IDataProtectionProvider ^ Create(System::IO::DirectoryInfo ^ keyDirectory, Action<Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^> ^ setupAction);
public static Microsoft.AspNetCore.DataProtection.IDataProtectionProvider Create (System.IO.DirectoryInfo keyDirectory, Action<Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder> setupAction);
static member Create : System.IO.DirectoryInfo * Action<Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder> -> Microsoft.AspNetCore.DataProtection.IDataProtectionProvider
Public Shared Function Create (keyDirectory As DirectoryInfo, setupAction As Action(Of IDataProtectionBuilder)) As IDataProtectionProvider
参数
- keyDirectory
- DirectoryInfo
DirectoryInfo应在其中存储密钥的 。 这可能表示本地磁盘或 UNC 共享上的目录。
- setupAction
- Action<IDataProtectionBuilder>
一个可选的回调,用于进一步配置数据保护系统。 有关详细信息,请参阅IDataProtectionBuilder。
返回
适用于
Create(DirectoryInfo, X509Certificate2)
- Source:
- DataProtectionProvider.cs
- Source:
- DataProtectionProvider.cs
- Source:
- DataProtectionProvider.cs
- Source:
- DataProtectionProvider.cs
- Source:
- DataProtectionProvider.cs
- Source:
- DataProtectionProvider.cs
- Source:
- DataProtectionProvider.cs
- Source:
- DataProtectionProvider.cs
创建一个 DataProtectionProvider 给定的存储密钥的位置,以及 X509Certificate2 用于加密密钥的 。
public:
static Microsoft::AspNetCore::DataProtection::IDataProtectionProvider ^ Create(System::IO::DirectoryInfo ^ keyDirectory, System::Security::Cryptography::X509Certificates::X509Certificate2 ^ certificate);
public static Microsoft.AspNetCore.DataProtection.IDataProtectionProvider Create (System.IO.DirectoryInfo keyDirectory, System.Security.Cryptography.X509Certificates.X509Certificate2 certificate);
static member Create : System.IO.DirectoryInfo * System.Security.Cryptography.X509Certificates.X509Certificate2 -> Microsoft.AspNetCore.DataProtection.IDataProtectionProvider
Public Shared Function Create (keyDirectory As DirectoryInfo, certificate As X509Certificate2) As IDataProtectionProvider
参数
- keyDirectory
- DirectoryInfo
DirectoryInfo应在其中存储密钥的 。 这可能表示本地磁盘或 UNC 共享上的目录。
- certificate
- X509Certificate2
X509Certificate2要用于加密的 。
返回
适用于
Create(String, X509Certificate2)
- Source:
- DataProtectionProvider.cs
- Source:
- DataProtectionProvider.cs
- Source:
- DataProtectionProvider.cs
- Source:
- DataProtectionProvider.cs
- Source:
- DataProtectionProvider.cs
- Source:
- DataProtectionProvider.cs
- Source:
- DataProtectionProvider.cs
- Source:
- DataProtectionProvider.cs
创建一个 , DataProtectionProvider 它将密钥存储在基于平台和操作系统的位置,并使用给定 X509Certificate2 的 来加密密钥。
public:
static Microsoft::AspNetCore::DataProtection::IDataProtectionProvider ^ Create(System::String ^ applicationName, System::Security::Cryptography::X509Certificates::X509Certificate2 ^ certificate);
public static Microsoft.AspNetCore.DataProtection.IDataProtectionProvider Create (string applicationName, System.Security.Cryptography.X509Certificates.X509Certificate2 certificate);
static member Create : string * System.Security.Cryptography.X509Certificates.X509Certificate2 -> Microsoft.AspNetCore.DataProtection.IDataProtectionProvider
Public Shared Function Create (applicationName As String, certificate As X509Certificate2) As IDataProtectionProvider
参数
- applicationName
- String
将此应用程序与计算机上的所有其他应用程序唯一区分的标识符。
- certificate
- X509Certificate2
X509Certificate2要用于加密的 。
返回
适用于
Create(DirectoryInfo, Action<IDataProtectionBuilder>, X509Certificate2)
- Source:
- DataProtectionProvider.cs
- Source:
- DataProtectionProvider.cs
- Source:
- DataProtectionProvider.cs
- Source:
- DataProtectionProvider.cs
- Source:
- DataProtectionProvider.cs
- Source:
- DataProtectionProvider.cs
- Source:
- DataProtectionProvider.cs
- Source:
- DataProtectionProvider.cs
创建一个 DataProtectionProvider 给定的存储密钥的位置、可选的配置回调和 X509Certificate2 用于加密密钥的 。
public:
static Microsoft::AspNetCore::DataProtection::IDataProtectionProvider ^ Create(System::IO::DirectoryInfo ^ keyDirectory, Action<Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^> ^ setupAction, System::Security::Cryptography::X509Certificates::X509Certificate2 ^ certificate);
public static Microsoft.AspNetCore.DataProtection.IDataProtectionProvider Create (System.IO.DirectoryInfo keyDirectory, Action<Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder> setupAction, System.Security.Cryptography.X509Certificates.X509Certificate2 certificate);
static member Create : System.IO.DirectoryInfo * Action<Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder> * System.Security.Cryptography.X509Certificates.X509Certificate2 -> Microsoft.AspNetCore.DataProtection.IDataProtectionProvider
Public Shared Function Create (keyDirectory As DirectoryInfo, setupAction As Action(Of IDataProtectionBuilder), certificate As X509Certificate2) As IDataProtectionProvider
参数
- keyDirectory
- DirectoryInfo
DirectoryInfo应在其中存储密钥的 。 这可能表示本地磁盘或 UNC 共享上的目录。
- setupAction
- Action<IDataProtectionBuilder>
一个可选的回调,用于进一步配置数据保护系统。 有关详细信息,请参阅IDataProtectionBuilder。
- certificate
- X509Certificate2
X509Certificate2要用于加密的 。