DataProtectionBuilderExtensions.ProtectKeysWithCertificate Método

Definição

Sobrecargas

ProtectKeysWithCertificate(IDataProtectionBuilder, X509Certificate2)

Configura as chaves a serem criptografadas para um determinado certificado antes de serem mantidas no armazenamento.

ProtectKeysWithCertificate(IDataProtectionBuilder, String)

Configura as chaves a serem criptografadas para um determinado certificado antes de serem mantidas no armazenamento.

ProtectKeysWithCertificate(IDataProtectionBuilder, X509Certificate2)

Configura as chaves a serem criptografadas para um determinado certificado antes de serem mantidas no armazenamento.

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

Parâmetros

certificate
X509Certificate2

O certificado a ser usado ao criptografar chaves.

Retornos

Uma referência ao após a IDataProtectionBuilder conclusão dessa operação.

Aplica-se a

ProtectKeysWithCertificate(IDataProtectionBuilder, String)

Configura as chaves a serem criptografadas para um determinado certificado antes de serem mantidas no armazenamento.

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

Parâmetros

thumbprint
String

A impressão digital do certificado a ser usada ao criptografar chaves.

Retornos

Uma referência ao após a IDataProtectionBuilder conclusão dessa operação.

Aplica-se a