CertificateXmlEncryptor Class

Definition

An IXmlEncryptor that can perform XML encryption by using an X.509 certificate.

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
Inheritance
CertificateXmlEncryptor
Implements

Constructors

CertificateXmlEncryptor(String, ICertificateResolver, ILoggerFactory)

Creates a CertificateXmlEncryptor given a certificate's thumbprint, an ICertificateResolver that can be used to resolve the certificate, and an IServiceProvider.

CertificateXmlEncryptor(X509Certificate2, ILoggerFactory)

Creates a CertificateXmlEncryptor given an X509Certificate2 instance and an IServiceProvider.

Methods

Encrypt(XElement)

Encrypts the specified XElement with an X.509 certificate.

Applies to