Sdílet prostřednictvím


AzureDataProtectionKeyVaultKeyBuilderExtensions.ProtectKeysWithAzureKeyVault Method

Definition

Overloads

ProtectKeysWithAzureKeyVault(IDataProtectionBuilder, String, IKeyEncryptionKeyResolver)

Configures the data protection system to protect keys with specified key in Azure KeyVault.

ProtectKeysWithAzureKeyVault(IDataProtectionBuilder, String, Func<IServiceProvider,IKeyEncryptionKeyResolver>)

Configures the data protection system to protect keys with specified key in Azure Key Vault.

ProtectKeysWithAzureKeyVault(IDataProtectionBuilder, String, Func<IServiceProvider,TokenCredential>)

Configures the data protection system to protect keys with specified key in Azure Key Vault.

ProtectKeysWithAzureKeyVault(IDataProtectionBuilder, Uri, TokenCredential)

Configures the data protection system to protect keys with specified key in Azure KeyVault.

ProtectKeysWithAzureKeyVault(IDataProtectionBuilder, String, IKeyEncryptionKeyResolver)

Source:
AzureDataProtectionKeyVaultKeyBuilderExtensions.cs

Configures the data protection system to protect keys with specified key in Azure KeyVault.

public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder ProtectKeysWithAzureKeyVault (this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, string keyIdentifier, Azure.Core.Cryptography.IKeyEncryptionKeyResolver keyResolver);
static member ProtectKeysWithAzureKeyVault : Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder * string * Azure.Core.Cryptography.IKeyEncryptionKeyResolver -> Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder
<Extension()>
Public Function ProtectKeysWithAzureKeyVault (builder As IDataProtectionBuilder, keyIdentifier As String, keyResolver As IKeyEncryptionKeyResolver) As IDataProtectionBuilder

Parameters

builder
IDataProtectionBuilder

The builder instance to modify.

keyIdentifier
String

The Azure Key Vault key identifier used for key encryption.

keyResolver
IKeyEncryptionKeyResolver

The IKeyEncryptionKeyResolver to use for Key Vault access.

Returns

The value builder.

Applies to

ProtectKeysWithAzureKeyVault(IDataProtectionBuilder, String, Func<IServiceProvider,IKeyEncryptionKeyResolver>)

Source:
AzureDataProtectionKeyVaultKeyBuilderExtensions.cs

Configures the data protection system to protect keys with specified key in Azure Key Vault.

public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder ProtectKeysWithAzureKeyVault (this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, string keyIdentifier, Func<IServiceProvider,Azure.Core.Cryptography.IKeyEncryptionKeyResolver> keyResolverFactory);
static member ProtectKeysWithAzureKeyVault : Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder * string * Func<IServiceProvider, Azure.Core.Cryptography.IKeyEncryptionKeyResolver> -> Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder
<Extension()>
Public Function ProtectKeysWithAzureKeyVault (builder As IDataProtectionBuilder, keyIdentifier As String, keyResolverFactory As Func(Of IServiceProvider, IKeyEncryptionKeyResolver)) As IDataProtectionBuilder

Parameters

builder
IDataProtectionBuilder

The builder instance to modify.

keyIdentifier
String

The Azure Key Vault key identifier used for key encryption.

keyResolverFactory
Func<IServiceProvider,IKeyEncryptionKeyResolver>

The factory delegate to create the IKeyEncryptionKeyResolver to use for Key Vault access.

Returns

The value builder.

Applies to

ProtectKeysWithAzureKeyVault(IDataProtectionBuilder, String, Func<IServiceProvider,TokenCredential>)

Source:
AzureDataProtectionKeyVaultKeyBuilderExtensions.cs

Configures the data protection system to protect keys with specified key in Azure Key Vault.

public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder ProtectKeysWithAzureKeyVault (this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, string keyIdentifier, Func<IServiceProvider,Azure.Core.TokenCredential> tokenCredentialFactory);
static member ProtectKeysWithAzureKeyVault : Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder * string * Func<IServiceProvider, Azure.Core.TokenCredential> -> Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder
<Extension()>
Public Function ProtectKeysWithAzureKeyVault (builder As IDataProtectionBuilder, keyIdentifier As String, tokenCredentialFactory As Func(Of IServiceProvider, TokenCredential)) As IDataProtectionBuilder

Parameters

builder
IDataProtectionBuilder

The builder instance to modify.

keyIdentifier
String

The Azure Key Vault key identifier used for key encryption.

tokenCredentialFactory
Func<IServiceProvider,TokenCredential>

The factory delegate to create the TokenCredential to use for authenticating Key Vault access.

Returns

The value builder.

Applies to

ProtectKeysWithAzureKeyVault(IDataProtectionBuilder, Uri, TokenCredential)

Source:
AzureDataProtectionKeyVaultKeyBuilderExtensions.cs

Configures the data protection system to protect keys with specified key in Azure KeyVault.

public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder ProtectKeysWithAzureKeyVault (this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, Uri keyIdentifier, Azure.Core.TokenCredential tokenCredential);
static member ProtectKeysWithAzureKeyVault : Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder * Uri * Azure.Core.TokenCredential -> Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder
<Extension()>
Public Function ProtectKeysWithAzureKeyVault (builder As IDataProtectionBuilder, keyIdentifier As Uri, tokenCredential As TokenCredential) As IDataProtectionBuilder

Parameters

builder
IDataProtectionBuilder

The builder instance to modify.

keyIdentifier
Uri

The Azure Key Vault key identifier used for key encryption.

tokenCredential
TokenCredential

The token credential to use for authentication.

Returns

The value builder.

Applies to