Share via


DpapiXmlEncryptor Class

Definition

An IXmlEncryptor that encrypts XML by using Windows DPAPI.

public ref class DpapiXmlEncryptor sealed : Microsoft::AspNetCore::DataProtection::XmlEncryption::IXmlEncryptor
public sealed class DpapiXmlEncryptor : Microsoft.AspNetCore.DataProtection.XmlEncryption.IXmlEncryptor
type DpapiXmlEncryptor = class
    interface IXmlEncryptor
Public NotInheritable Class DpapiXmlEncryptor
Implements IXmlEncryptor
Inheritance
DpapiXmlEncryptor
Implements

Remarks

This API is only supported on Windows platforms.

Constructors

DpapiXmlEncryptor(Boolean, ILoggerFactory)

Creates a DpapiXmlEncryptor given a protection scope and an IServiceProvider.

DpapiXmlEncryptor(Boolean, IServiceProvider)

Creates a DpapiXmlEncryptor given a protection scope and an IServiceProvider.

DpapiXmlEncryptor(Boolean)

Creates a DpapiXmlEncryptor given a protection scope.

Methods

Encrypt(XElement)

Encrypts the specified XElement.

Applies to