Share via


DpapiNGXmlEncryptor Class

Definition

A class that can encrypt XML elements using Windows DPAPI:NG.

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

Remarks

This API is only supported on Windows 8 / Windows Server 2012 and higher.

Constructors

DpapiNGXmlEncryptor(String, DpapiNGProtectionDescriptorFlags, ILoggerFactory)

Creates a new instance of a DpapiNGXmlEncryptor.

DpapiNGXmlEncryptor(String, DpapiNGProtectionDescriptorFlags, IServiceProvider)

Creates a new instance of a DpapiNGXmlEncryptor.

DpapiNGXmlEncryptor(String, DpapiNGProtectionDescriptorFlags)

Creates a new instance of a DpapiNGXmlEncryptor.

Methods

Encrypt(XElement)

Encrypts the specified XElement.

Applies to