DataProtectionBuilderExtensions.ProtectKeysWithCertificate Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
ProtectKeysWithCertificate(IDataProtectionBuilder, X509Certificate2) |
Configura las claves que se cifran en un certificado determinado antes de conservarse en el almacenamiento. |
ProtectKeysWithCertificate(IDataProtectionBuilder, String) |
Configura las claves que se cifran en un certificado determinado antes de conservarse en el almacenamiento. |
ProtectKeysWithCertificate(IDataProtectionBuilder, X509Certificate2)
Configura las claves que se cifran en un certificado determinado antes de conservarse en el almacenamiento.
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
Certificado que se va a usar al cifrar claves.
Devoluciones
Referencia a una IDataProtectionBuilder vez completada esta operación.
Se aplica a
ProtectKeysWithCertificate(IDataProtectionBuilder, String)
Configura las claves que se cifran en un certificado determinado antes de conservarse en el almacenamiento.
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
Huella digital del certificado que se va a usar al cifrar claves.
Devoluciones
Referencia a una IDataProtectionBuilder vez completada esta operación.