DataProtectionBuilderExtensions.ProtectKeysWithCertificate メソッド

定義

オーバーロード

ProtectKeysWithCertificate(IDataProtectionBuilder, X509Certificate2)

ストレージに永続化される前に、特定の証明書に暗号化されるようにキーを構成します。

ProtectKeysWithCertificate(IDataProtectionBuilder, String)

ストレージに永続化される前に、特定の証明書に暗号化されるようにキーを構成します。

ProtectKeysWithCertificate(IDataProtectionBuilder, X509Certificate2)

ストレージに永続化される前に、特定の証明書に暗号化されるようにキーを構成します。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ ProtectKeysWithCertificate(Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ builder, System::Security::Cryptography::X509Certificates::X509Certificate2 ^ certificate);
public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder ProtectKeysWithCertificate (this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, System.Security.Cryptography.X509Certificates.X509Certificate2 certificate);
static member ProtectKeysWithCertificate : Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder * System.Security.Cryptography.X509Certificates.X509Certificate2 -> Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder
<Extension()>
Public Function ProtectKeysWithCertificate (builder As IDataProtectionBuilder, certificate As X509Certificate2) As IDataProtectionBuilder

パラメーター

certificate
X509Certificate2

キーを暗号化するときに使用する証明書。

戻り値

この操作が完了した後の への IDataProtectionBuilder 参照。

適用対象

ProtectKeysWithCertificate(IDataProtectionBuilder, String)

ストレージに永続化される前に、特定の証明書に暗号化されるようにキーを構成します。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ ProtectKeysWithCertificate(Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ builder, System::String ^ thumbprint);
public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder ProtectKeysWithCertificate (this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, string thumbprint);
static member ProtectKeysWithCertificate : Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder * string -> Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder
<Extension()>
Public Function ProtectKeysWithCertificate (builder As IDataProtectionBuilder, thumbprint As String) As IDataProtectionBuilder

パラメーター

thumbprint
String

キーを暗号化するときに使用する証明書の拇印。

戻り値

この操作が完了した後の への IDataProtectionBuilder 参照。

適用対象