DataProtectionBuilderExtensions.ProtectKeysWithCertificate Methode

Definition

Überlädt

ProtectKeysWithCertificate(IDataProtectionBuilder, X509Certificate2)

Konfiguriert Schlüssel, die mit einem bestimmten Zertifikat verschlüsselt werden sollen, bevor sie im Speicher gespeichert werden.

ProtectKeysWithCertificate(IDataProtectionBuilder, String)

Konfiguriert Schlüssel, die mit einem bestimmten Zertifikat verschlüsselt werden sollen, bevor sie im Speicher gespeichert werden.

ProtectKeysWithCertificate(IDataProtectionBuilder, X509Certificate2)

Konfiguriert Schlüssel, die mit einem bestimmten Zertifikat verschlüsselt werden sollen, bevor sie im Speicher gespeichert werden.

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

Parameter

certificate
X509Certificate2

Das Zertifikat, das beim Verschlüsseln von Schlüsseln verwendet werden soll.

Gibt zurück

Ein Verweis auf den IDataProtectionBuilder , nachdem dieser Vorgang abgeschlossen wurde.

Gilt für:

ProtectKeysWithCertificate(IDataProtectionBuilder, String)

Konfiguriert Schlüssel, die mit einem bestimmten Zertifikat verschlüsselt werden sollen, bevor sie im Speicher gespeichert werden.

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

Parameter

thumbprint
String

Der Fingerabdruck des Zertifikats, das beim Verschlüsseln von Schlüsseln verwendet werden soll.

Gibt zurück

Ein Verweis auf den IDataProtectionBuilder , nachdem dieser Vorgang abgeschlossen wurde.

Gilt für: