DataProtectionBuilderExtensions.UseCustomCryptographicAlgorithms 方法

定义

重载

UseCustomCryptographicAlgorithms(IDataProtectionBuilder, ManagedAuthenticatedEncryptionSettings)

将数据保护系统配置为使用自定义算法。 此 API 适用于开发人员无法使用 和 ValidationAlgorithm 枚举中指定的EncryptionAlgorithm算法的高级方案。

UseCustomCryptographicAlgorithms(IDataProtectionBuilder, CngCbcAuthenticatedEncryptionSettings)

配置数据保护系统以使用自定义 Windows CNG 算法。 此 API 适用于开发人员无法使用 和 ValidationAlgorithm 枚举中指定的EncryptionAlgorithm算法的高级方案。

UseCustomCryptographicAlgorithms(IDataProtectionBuilder, CngGcmAuthenticatedEncryptionSettings)

配置数据保护系统以使用自定义 Windows CNG 算法。 此 API 适用于开发人员无法使用 和 ValidationAlgorithm 枚举中指定的EncryptionAlgorithm算法的高级方案。

UseCustomCryptographicAlgorithms(IDataProtectionBuilder, CngCbcAuthenticatedEncryptorConfiguration)

配置数据保护系统以使用自定义 Windows CNG 算法。 此 API 适用于开发人员无法使用 和 ValidationAlgorithm 枚举中指定的EncryptionAlgorithm算法的高级方案。

UseCustomCryptographicAlgorithms(IDataProtectionBuilder, CngGcmAuthenticatedEncryptorConfiguration)

配置数据保护系统以使用自定义 Windows CNG 算法。 此 API 适用于开发人员无法使用 和 ValidationAlgorithm 枚举中指定的EncryptionAlgorithm算法的高级方案。

UseCustomCryptographicAlgorithms(IDataProtectionBuilder, ManagedAuthenticatedEncryptorConfiguration)

将数据保护系统配置为使用自定义算法。 此 API 适用于开发人员无法使用 和 ValidationAlgorithm 枚举中指定的EncryptionAlgorithm算法的高级方案。

UseCustomCryptographicAlgorithms(IDataProtectionBuilder, ManagedAuthenticatedEncryptionSettings)

将数据保护系统配置为使用自定义算法。 此 API 适用于开发人员无法使用 和 ValidationAlgorithm 枚举中指定的EncryptionAlgorithm算法的高级方案。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ UseCustomCryptographicAlgorithms(Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ builder, Microsoft::AspNetCore::DataProtection::AuthenticatedEncryption::ManagedAuthenticatedEncryptionSettings ^ settings);
public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder UseCustomCryptographicAlgorithms (this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ManagedAuthenticatedEncryptionSettings settings);
static member UseCustomCryptographicAlgorithms : Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder * Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ManagedAuthenticatedEncryptionSettings -> Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder
<Extension()>
Public Function UseCustomCryptographicAlgorithms (builder As IDataProtectionBuilder, settings As ManagedAuthenticatedEncryptionSettings) As IDataProtectionBuilder

参数

settings
ManagedAuthenticatedEncryptionSettings

有关应使用哪些加密算法的信息。

返回

此操作完成后对 IDataProtectionBuilder 的引用。

适用于

UseCustomCryptographicAlgorithms(IDataProtectionBuilder, CngCbcAuthenticatedEncryptionSettings)

配置数据保护系统以使用自定义 Windows CNG 算法。 此 API 适用于开发人员无法使用 和 ValidationAlgorithm 枚举中指定的EncryptionAlgorithm算法的高级方案。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ UseCustomCryptographicAlgorithms(Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ builder, Microsoft::AspNetCore::DataProtection::AuthenticatedEncryption::CngCbcAuthenticatedEncryptionSettings ^ settings);
public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder UseCustomCryptographicAlgorithms (this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.CngCbcAuthenticatedEncryptionSettings settings);
static member UseCustomCryptographicAlgorithms : Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder * Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.CngCbcAuthenticatedEncryptionSettings -> Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder
<Extension()>
Public Function UseCustomCryptographicAlgorithms (builder As IDataProtectionBuilder, settings As CngCbcAuthenticatedEncryptionSettings) As IDataProtectionBuilder

参数

settings
CngCbcAuthenticatedEncryptionSettings

有关应使用哪些加密算法的信息。

返回

此操作完成后对 IDataProtectionBuilder 的引用。

注解

此 API 仅在 Windows 上可用。

适用于

UseCustomCryptographicAlgorithms(IDataProtectionBuilder, CngGcmAuthenticatedEncryptionSettings)

配置数据保护系统以使用自定义 Windows CNG 算法。 此 API 适用于开发人员无法使用 和 ValidationAlgorithm 枚举中指定的EncryptionAlgorithm算法的高级方案。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ UseCustomCryptographicAlgorithms(Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ builder, Microsoft::AspNetCore::DataProtection::AuthenticatedEncryption::CngGcmAuthenticatedEncryptionSettings ^ settings);
public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder UseCustomCryptographicAlgorithms (this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.CngGcmAuthenticatedEncryptionSettings settings);
static member UseCustomCryptographicAlgorithms : Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder * Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.CngGcmAuthenticatedEncryptionSettings -> Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder
<Extension()>
Public Function UseCustomCryptographicAlgorithms (builder As IDataProtectionBuilder, settings As CngGcmAuthenticatedEncryptionSettings) As IDataProtectionBuilder

参数

settings
CngGcmAuthenticatedEncryptionSettings

有关应使用哪些加密算法的信息。

返回

此操作完成后对 IDataProtectionBuilder 的引用。

注解

此 API 仅在 Windows 上可用。

适用于

UseCustomCryptographicAlgorithms(IDataProtectionBuilder, CngCbcAuthenticatedEncryptorConfiguration)

Source:
DataProtectionBuilderExtensions.cs
Source:
DataProtectionBuilderExtensions.cs
Source:
DataProtectionBuilderExtensions.cs
Source:
DataProtectionBuilderExtensions.cs
Source:
DataProtectionBuilderExtensions.cs
Source:
DataProtectionBuilderExtensions.cs
Source:
DataProtectionBuilderExtensions.cs
Source:
DataProtectionBuilderExtensions.cs

配置数据保护系统以使用自定义 Windows CNG 算法。 此 API 适用于开发人员无法使用 和 ValidationAlgorithm 枚举中指定的EncryptionAlgorithm算法的高级方案。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ UseCustomCryptographicAlgorithms(Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ builder, Microsoft::AspNetCore::DataProtection::AuthenticatedEncryption::ConfigurationModel::CngCbcAuthenticatedEncryptorConfiguration ^ configuration);
public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder UseCustomCryptographicAlgorithms (this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.CngCbcAuthenticatedEncryptorConfiguration configuration);
static member UseCustomCryptographicAlgorithms : Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder * Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.CngCbcAuthenticatedEncryptorConfiguration -> Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder
<Extension()>
Public Function UseCustomCryptographicAlgorithms (builder As IDataProtectionBuilder, configuration As CngCbcAuthenticatedEncryptorConfiguration) As IDataProtectionBuilder

参数

configuration
CngCbcAuthenticatedEncryptorConfiguration

有关应使用哪些加密算法的信息。

返回

此操作完成后对 IDataProtectionBuilder 的引用。

注解

此 API 仅在 Windows 上可用。

适用于

UseCustomCryptographicAlgorithms(IDataProtectionBuilder, CngGcmAuthenticatedEncryptorConfiguration)

Source:
DataProtectionBuilderExtensions.cs
Source:
DataProtectionBuilderExtensions.cs
Source:
DataProtectionBuilderExtensions.cs
Source:
DataProtectionBuilderExtensions.cs
Source:
DataProtectionBuilderExtensions.cs
Source:
DataProtectionBuilderExtensions.cs
Source:
DataProtectionBuilderExtensions.cs
Source:
DataProtectionBuilderExtensions.cs

配置数据保护系统以使用自定义 Windows CNG 算法。 此 API 适用于开发人员无法使用 和 ValidationAlgorithm 枚举中指定的EncryptionAlgorithm算法的高级方案。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ UseCustomCryptographicAlgorithms(Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ builder, Microsoft::AspNetCore::DataProtection::AuthenticatedEncryption::ConfigurationModel::CngGcmAuthenticatedEncryptorConfiguration ^ configuration);
public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder UseCustomCryptographicAlgorithms (this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.CngGcmAuthenticatedEncryptorConfiguration configuration);
static member UseCustomCryptographicAlgorithms : Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder * Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.CngGcmAuthenticatedEncryptorConfiguration -> Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder
<Extension()>
Public Function UseCustomCryptographicAlgorithms (builder As IDataProtectionBuilder, configuration As CngGcmAuthenticatedEncryptorConfiguration) As IDataProtectionBuilder

参数

configuration
CngGcmAuthenticatedEncryptorConfiguration

有关应使用哪些加密算法的信息。

返回

此操作完成后对 IDataProtectionBuilder 的引用。

注解

此 API 仅在 Windows 上可用。

适用于

UseCustomCryptographicAlgorithms(IDataProtectionBuilder, ManagedAuthenticatedEncryptorConfiguration)

Source:
DataProtectionBuilderExtensions.cs
Source:
DataProtectionBuilderExtensions.cs
Source:
DataProtectionBuilderExtensions.cs
Source:
DataProtectionBuilderExtensions.cs
Source:
DataProtectionBuilderExtensions.cs
Source:
DataProtectionBuilderExtensions.cs
Source:
DataProtectionBuilderExtensions.cs
Source:
DataProtectionBuilderExtensions.cs

将数据保护系统配置为使用自定义算法。 此 API 适用于开发人员无法使用 和 ValidationAlgorithm 枚举中指定的EncryptionAlgorithm算法的高级方案。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ UseCustomCryptographicAlgorithms(Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ builder, Microsoft::AspNetCore::DataProtection::AuthenticatedEncryption::ConfigurationModel::ManagedAuthenticatedEncryptorConfiguration ^ configuration);
public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder UseCustomCryptographicAlgorithms (this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.ManagedAuthenticatedEncryptorConfiguration configuration);
static member UseCustomCryptographicAlgorithms : Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder * Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.ManagedAuthenticatedEncryptorConfiguration -> Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder
<Extension()>
Public Function UseCustomCryptographicAlgorithms (builder As IDataProtectionBuilder, configuration As ManagedAuthenticatedEncryptorConfiguration) As IDataProtectionBuilder

参数

configuration
ManagedAuthenticatedEncryptorConfiguration

有关应使用哪些加密算法的信息。

返回

此操作完成后对 IDataProtectionBuilder 的引用。

适用于