AzureDataProtectionBuilderExtensions.ProtectKeysWithAzureKeyVault 方法

定义

重载

ProtectKeysWithAzureKeyVault(IDataProtectionBuilder, KeyVaultClient, String)

配置数据保护系统,以使用 Azure KeyVault 中的指定密钥保护密钥。

ProtectKeysWithAzureKeyVault(IDataProtectionBuilder, String, String, X509Certificate2)

配置数据保护系统,以使用 Azure KeyVault 中的指定密钥保护密钥。

ProtectKeysWithAzureKeyVault(IDataProtectionBuilder, String, String, String)

配置数据保护系统,以使用 Azure KeyVault 中的指定密钥保护密钥。

ProtectKeysWithAzureKeyVault(IDataProtectionBuilder, KeyVaultClient, String)

配置数据保护系统,以使用 Azure KeyVault 中的指定密钥保护密钥。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ ProtectKeysWithAzureKeyVault(Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ builder, Microsoft::Azure::KeyVault::KeyVaultClient ^ client, System::String ^ keyIdentifier);
public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder ProtectKeysWithAzureKeyVault (this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, Microsoft.Azure.KeyVault.KeyVaultClient client, string keyIdentifier);
static member ProtectKeysWithAzureKeyVault : Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder * Microsoft.Azure.KeyVault.KeyVaultClient * string -> Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder
<Extension()>
Public Function ProtectKeysWithAzureKeyVault (builder As IDataProtectionBuilder, client As KeyVaultClient, keyIdentifier As String) As IDataProtectionBuilder

参数

builder
IDataProtectionBuilder

要修改的生成器实例。

client
KeyVaultClient

KeyVaultClient 用于 KeyVault 访问的 。

keyIdentifier
String

用于密钥加密的 Azure KeyVault 密钥标识符。

返回

builder

适用于

ProtectKeysWithAzureKeyVault(IDataProtectionBuilder, String, String, X509Certificate2)

配置数据保护系统,以使用 Azure KeyVault 中的指定密钥保护密钥。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ ProtectKeysWithAzureKeyVault(Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ builder, System::String ^ keyIdentifier, System::String ^ clientId, System::Security::Cryptography::X509Certificates::X509Certificate2 ^ certificate);
public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder ProtectKeysWithAzureKeyVault (this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, string keyIdentifier, string clientId, System.Security.Cryptography.X509Certificates.X509Certificate2 certificate);
static member ProtectKeysWithAzureKeyVault : Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder * string * string * System.Security.Cryptography.X509Certificates.X509Certificate2 -> Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder
<Extension()>
Public Function ProtectKeysWithAzureKeyVault (builder As IDataProtectionBuilder, keyIdentifier As String, clientId As String, certificate As X509Certificate2) As IDataProtectionBuilder

参数

builder
IDataProtectionBuilder

要修改的生成器实例。

keyIdentifier
String

用于密钥加密的 Azure KeyVault 密钥标识符。

clientId
String

应用程序客户端 ID。

certificate
X509Certificate2

返回

builder

适用于

ProtectKeysWithAzureKeyVault(IDataProtectionBuilder, String, String, String)

配置数据保护系统,以使用 Azure KeyVault 中的指定密钥保护密钥。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ ProtectKeysWithAzureKeyVault(Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ builder, System::String ^ keyIdentifier, System::String ^ clientId, System::String ^ clientSecret);
public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder ProtectKeysWithAzureKeyVault (this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, string keyIdentifier, string clientId, string clientSecret);
static member ProtectKeysWithAzureKeyVault : Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder * string * string * string -> Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder
<Extension()>
Public Function ProtectKeysWithAzureKeyVault (builder As IDataProtectionBuilder, keyIdentifier As String, clientId As String, clientSecret As String) As IDataProtectionBuilder

参数

builder
IDataProtectionBuilder

要修改的生成器实例。

keyIdentifier
String

用于密钥加密的 Azure KeyVault 密钥标识符。

clientId
String

应用程序客户端 ID。

clientSecret
String

用于身份验证的客户端密码。

返回

builder

适用于