AzureDataProtectionBuilderExtensions.ProtectKeysWithAzureKeyVault 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
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
應用程式用戶端識別碼。
- 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
應用程式用戶端識別碼。
- clientSecret
- String
用於驗證的用戶端祕密。
傳回
值 builder
。