共用方式為


CertificateXmlEncryptor 類別

定義

IXmlEncryptor 可使用 X.509 憑證執行 XML 加密。

public ref class CertificateXmlEncryptor sealed : Microsoft::AspNetCore::DataProtection::XmlEncryption::IXmlEncryptor
public sealed class CertificateXmlEncryptor : Microsoft.AspNetCore.DataProtection.XmlEncryption.IXmlEncryptor
type CertificateXmlEncryptor = class
    interface IXmlEncryptor
Public NotInheritable Class CertificateXmlEncryptor
Implements IXmlEncryptor
繼承
CertificateXmlEncryptor
實作

建構函式

CertificateXmlEncryptor(String, ICertificateResolver, ILoggerFactory)

CertificateXmlEncryptor建立指定的憑證指紋、 ICertificateResolver 可用來解析憑證的 ,以及 IServiceProvider

CertificateXmlEncryptor(X509Certificate2, ILoggerFactory)

CertificateXmlEncryptor建立指定的 X509Certificate2 實例和 IServiceProvider

方法

Encrypt(XElement)

使用 X.509 憑證加密指定的 XElement

適用於