你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

AzureDataProtectionKeyVaultKeyBuilderExtensions.ProtectKeysWithAzureKeyVault 方法

定义

重载

ProtectKeysWithAzureKeyVault(IDataProtectionBuilder, String, IKeyEncryptionKeyResolver)

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

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

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

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

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

ProtectKeysWithAzureKeyVault(IDataProtectionBuilder, Uri, TokenCredential)

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

ProtectKeysWithAzureKeyVault(IDataProtectionBuilder, String, IKeyEncryptionKeyResolver)

Source:
AzureDataProtectionKeyVaultKeyBuilderExtensions.cs

配置数据保护系统,以使用 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

参数

builder
IDataProtectionBuilder

要修改的生成器实例。

keyIdentifier
String

用于密钥加密的 Azure 密钥保管库密钥标识符。

keyResolver
IKeyEncryptionKeyResolver

IKeyEncryptionKeyResolver用于密钥保管库访问的 。

返回

builder

适用于

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

Source:
AzureDataProtectionKeyVaultKeyBuilderExtensions.cs

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

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

参数

builder
IDataProtectionBuilder

要修改的生成器实例。

keyIdentifier
String

用于密钥加密的 Azure 密钥保管库密钥标识符。

keyResolverFactory
Func<IServiceProvider,IKeyEncryptionKeyResolver>

要创建IKeyEncryptionKeyResolver用于密钥保管库访问的 工厂委托。

返回

builder

适用于

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

Source:
AzureDataProtectionKeyVaultKeyBuilderExtensions.cs

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

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

参数

builder
IDataProtectionBuilder

要修改的生成器实例。

keyIdentifier
String

用于密钥加密的 Azure 密钥保管库密钥标识符。

tokenCredentialFactory
Func<IServiceProvider,TokenCredential>

要创建TokenCredential用于验证密钥保管库访问权限的工厂委托。

返回

builder

适用于

ProtectKeysWithAzureKeyVault(IDataProtectionBuilder, Uri, TokenCredential)

Source:
AzureDataProtectionKeyVaultKeyBuilderExtensions.cs

配置数据保护系统,以使用 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

参数

builder
IDataProtectionBuilder

要修改的生成器实例。

keyIdentifier
Uri

用于密钥加密的 Azure 密钥保管库密钥标识符。

tokenCredential
TokenCredential

用于身份验证的令牌凭据。

返回

builder

适用于