IXmlEncryptor Interface

The basic interface for encrypting XML elements.

Namespace
Microsoft.AspNetCore.DataProtection.XmlEncryption
Assemblies
  • Microsoft.AspNetCore.DataProtection

Syntax

public interface IXmlEncryptor
interface Microsoft.AspNetCore.DataProtection.XmlEncryption.IXmlEncryptor

Methods

Encrypt(System.Xml.Linq.XElement)

Encrypts the specified System.Xml.Linq.XElement.

Arguments:plaintextElement (System.Xml.Linq.XElement) – The plaintext to encrypt.
Return type:Microsoft.AspNetCore.DataProtection.XmlEncryption.EncryptedXmlInfo
Returns:An Microsoft.AspNetCore.DataProtection.XmlEncryption.EncryptedXmlInfo that contains the encrypted value of <em>plaintextElement</em> along with information about how to decrypt it.
EncryptedXmlInfo Encrypt(XElement plaintextElement)