DataProtectionBuilderExtensions.ProtectKeysWithCertificate Metoda

Definicja

Przeciążenia

ProtectKeysWithCertificate(IDataProtectionBuilder, X509Certificate2)

Konfiguruje klucze do szyfrowania dla danego certyfikatu przed utrwalonym w magazynie.

ProtectKeysWithCertificate(IDataProtectionBuilder, String)

Konfiguruje klucze do szyfrowania dla danego certyfikatu przed utrwalonym w magazynie.

ProtectKeysWithCertificate(IDataProtectionBuilder, X509Certificate2)

Konfiguruje klucze do szyfrowania dla danego certyfikatu przed utrwalonym w magazynie.

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

Parametry

certificate
X509Certificate2

Certyfikat do użycia podczas szyfrowania kluczy.

Zwraca

Odwołanie do elementu po zakończeniu IDataProtectionBuilder tej operacji.

Dotyczy

ProtectKeysWithCertificate(IDataProtectionBuilder, String)

Konfiguruje klucze do szyfrowania dla danego certyfikatu przed utrwalonym w magazynie.

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

Parametry

thumbprint
String

Odcisk palca certyfikatu do użycia podczas szyfrowania kluczy.

Zwraca

Odwołanie do elementu po zakończeniu IDataProtectionBuilder tej operacji.

Dotyczy