DataProtectionBuilderExtensions.ProtectKeysWithCertificate 메서드

정의

오버로드

ProtectKeysWithCertificate(IDataProtectionBuilder, X509Certificate2)

스토리지에 유지되기 전에 지정된 인증서로 암호화되도록 키를 구성합니다.

ProtectKeysWithCertificate(IDataProtectionBuilder, String)

스토리지에 유지되기 전에 지정된 인증서로 암호화되도록 키를 구성합니다.

ProtectKeysWithCertificate(IDataProtectionBuilder, X509Certificate2)

스토리지에 유지되기 전에 지정된 인증서로 암호화되도록 키를 구성합니다.

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

매개 변수

certificate
X509Certificate2

키를 암호화할 때 사용할 인증서입니다.

반환

이 작업이 완료된 후 에 IDataProtectionBuilder 대한 참조입니다.

적용 대상

ProtectKeysWithCertificate(IDataProtectionBuilder, String)

스토리지에 유지되기 전에 지정된 인증서로 암호화되도록 키를 구성합니다.

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

매개 변수

thumbprint
String

키를 암호화할 때 사용할 인증서의 지문입니다.

반환

이 작업이 완료된 후 에 IDataProtectionBuilder 대한 참조입니다.

적용 대상