DataProtectionBuilderExtensions.ProtectKeysWithCertificate Metodo

Definizione

Overload

ProtectKeysWithCertificate(IDataProtectionBuilder, X509Certificate2)

Configura le chiavi da crittografare in un determinato certificato prima di essere rese persistenti nell'archiviazione.

ProtectKeysWithCertificate(IDataProtectionBuilder, String)

Configura le chiavi da crittografare in un determinato certificato prima di essere rese persistenti nell'archiviazione.

ProtectKeysWithCertificate(IDataProtectionBuilder, X509Certificate2)

Configura le chiavi da crittografare in un determinato certificato prima di essere rese persistenti nell'archiviazione.

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

Parametri

certificate
X509Certificate2

Certificato da usare per la crittografia delle chiavi.

Restituisce

Riferimento all'oggetto dopo il IDataProtectionBuilder completamento dell'operazione.

Si applica a

ProtectKeysWithCertificate(IDataProtectionBuilder, String)

Configura le chiavi da crittografare in un determinato certificato prima di essere rese persistenti nell'archiviazione.

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

Parametri

thumbprint
String

Identificazione personale del certificato da usare per la crittografia delle chiavi.

Restituisce

Riferimento all'oggetto dopo il IDataProtectionBuilder completamento dell'operazione.

Si applica a