NullXmlEncryptor Class

Definition

An IXmlEncryptor that encrypts XML elements with a null encryptor.

C#
public sealed class NullXmlEncryptor : Microsoft.AspNetCore.DataProtection.XmlEncryption.IXmlEncryptor
Inheritance
NullXmlEncryptor
Implements

Constructors

NullXmlEncryptor()

Creates a new instance of NullXmlEncryptor.

NullXmlEncryptor(IServiceProvider)

Creates a new instance of NullXmlEncryptor.

Methods

Encrypt(XElement)

Encrypts the specified XElement with a null encryptor, i.e., by returning the original value of plaintextElement unencrypted.

Applies to

Product Versions
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