共用方式為


DataProtectionBuilderExtensions.UseCryptographicAlgorithms 方法

定義

多載

UseCryptographicAlgorithms(IDataProtectionBuilder, AuthenticatedEncryptionSettings)

設定資料保護系統,以在產生受保護的承載時,預設使用指定的密碼編譯演算法。

UseCryptographicAlgorithms(IDataProtectionBuilder, AuthenticatedEncryptorConfiguration)

設定資料保護系統,以在產生受保護的承載時,預設使用指定的密碼編譯演算法。

UseCryptographicAlgorithms(IDataProtectionBuilder, AuthenticatedEncryptionSettings)

設定資料保護系統,以在產生受保護的承載時,預設使用指定的密碼編譯演算法。

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

參數

settings
AuthenticatedEncryptionSettings

應該使用哪些密碼編譯演算法的相關資訊。

傳回

此作業完成之後的 IDataProtectionBuilder 參考。

適用於

UseCryptographicAlgorithms(IDataProtectionBuilder, AuthenticatedEncryptorConfiguration)

來源:
DataProtectionBuilderExtensions.cs
來源:
DataProtectionBuilderExtensions.cs
來源:
DataProtectionBuilderExtensions.cs
來源:
DataProtectionBuilderExtensions.cs
來源:
DataProtectionBuilderExtensions.cs
來源:
DataProtectionBuilderExtensions.cs
來源:
DataProtectionBuilderExtensions.cs
來源:
DataProtectionBuilderExtensions.cs

設定資料保護系統,以在產生受保護的承載時,預設使用指定的密碼編譯演算法。

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

參數

configuration
AuthenticatedEncryptorConfiguration

應該使用哪些密碼編譯演算法的相關資訊。

傳回

此作業完成之後的 IDataProtectionBuilder 參考。

適用於