AzureDataProtectionBuilderExtensions.ProtectKeysWithAzureKeyVault Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ProtectKeysWithAzureKeyVault(IDataProtectionBuilder, KeyVaultClient, String) |
Configures the data protection system to protect keys with specified key in Azure KeyVault. |
ProtectKeysWithAzureKeyVault(IDataProtectionBuilder, String, String, X509Certificate2) |
Configures the data protection system to protect keys with specified key in Azure KeyVault. |
ProtectKeysWithAzureKeyVault(IDataProtectionBuilder, String, String, String) |
Configures the data protection system to protect keys with specified key in Azure KeyVault. |
ProtectKeysWithAzureKeyVault(IDataProtectionBuilder, KeyVaultClient, String)
Configures the data protection system to protect keys with specified key in 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
Parameters
- builder
- IDataProtectionBuilder
The builder instance to modify.
- client
- KeyVaultClient
The KeyVaultClient to use for KeyVault access.
- keyIdentifier
- String
The Azure KeyVault key identifier used for key encryption.
Returns
The value builder
.
Applies to
ProtectKeysWithAzureKeyVault(IDataProtectionBuilder, String, String, X509Certificate2)
Configures the data protection system to protect keys with specified key in 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
Parameters
- builder
- IDataProtectionBuilder
The builder instance to modify.
- keyIdentifier
- String
The Azure KeyVault key identifier used for key encryption.
- clientId
- String
The application client id.
- certificate
- X509Certificate2
Returns
The value builder
.
Applies to
ProtectKeysWithAzureKeyVault(IDataProtectionBuilder, String, String, String)
Configures the data protection system to protect keys with specified key in 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
Parameters
- builder
- IDataProtectionBuilder
The builder instance to modify.
- keyIdentifier
- String
The Azure KeyVault key identifier used for key encryption.
- clientId
- String
The application client id.
- clientSecret
- String
The client secret to use for authentication.
Returns
The value builder
.