DpapiXmlEncryptor Class

Definition

An IXmlEncryptor that encrypts XML by using Windows DPAPI.

C#
public sealed class DpapiXmlEncryptor : Microsoft.AspNetCore.DataProtection.XmlEncryption.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

Produkt Versioner
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0