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

Constructors

CertificateXmlEncryptor(X509Certificate2, ILoggerFactory) CertificateXmlEncryptor(X509Certificate2, ILoggerFactory) CertificateXmlEncryptor(X509Certificate2, ILoggerFactory) CertificateXmlEncryptor(X509Certificate2, ILoggerFactory)

Creates a CertificateXmlEncryptor given an X509Certificate2 instance and an IServiceProvider.

CertificateXmlEncryptor(String, ICertificateResolver, ILoggerFactory) CertificateXmlEncryptor(String, ICertificateResolver, ILoggerFactory) CertificateXmlEncryptor(String, ICertificateResolver, ILoggerFactory) 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.

Methods

Encrypt(XElement) Encrypt(XElement) Encrypt(XElement) Encrypt(XElement)

Encrypts the specified XElement with an X.509 certificate.

Applies to