DataProtectionBuilderExtensions.ProtectKeysWithCertificate DataProtectionBuilderExtensions.ProtectKeysWithCertificate DataProtectionBuilderExtensions.ProtectKeysWithCertificate Method

Definition

Overloads

ProtectKeysWithCertificate(IDataProtectionBuilder, X509Certificate2) ProtectKeysWithCertificate(IDataProtectionBuilder, X509Certificate2) ProtectKeysWithCertificate(IDataProtectionBuilder, X509Certificate2)

Configures keys to be encrypted to a given certificate before being persisted to storage.

ProtectKeysWithCertificate(IDataProtectionBuilder, String) ProtectKeysWithCertificate(IDataProtectionBuilder, String) ProtectKeysWithCertificate(IDataProtectionBuilder, String)

Configures keys to be encrypted to a given certificate before being persisted to storage.

ProtectKeysWithCertificate(IDataProtectionBuilder, X509Certificate2) ProtectKeysWithCertificate(IDataProtectionBuilder, X509Certificate2) ProtectKeysWithCertificate(IDataProtectionBuilder, X509Certificate2)

Configures keys to be encrypted to a given certificate before being persisted to storage.

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

Parameters

certificate
X509Certificate2 X509Certificate2 X509Certificate2

The certificate to use when encrypting keys.

Returns

A reference to the IDataProtectionBuilder after this operation has completed.

ProtectKeysWithCertificate(IDataProtectionBuilder, String) ProtectKeysWithCertificate(IDataProtectionBuilder, String) ProtectKeysWithCertificate(IDataProtectionBuilder, String)

Configures keys to be encrypted to a given certificate before being persisted to storage.

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

Parameters

thumbprint
String String String

The thumbprint of the certificate to use when encrypting keys.

Returns

A reference to the IDataProtectionBuilder after this operation has completed.

Applies to