EncryptedXmlDecryptor Class

An Microsoft.AspNetCore.DataProtection.XmlEncryption.IXmlDecryptor that decrypts XML elements by using the System.Security.Cryptography.Xml.EncryptedXml class.

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

Syntax

public sealed class EncryptedXmlDecryptor : IInternalEncryptedXmlDecryptor, IXmlDecryptor
class Microsoft.AspNetCore.DataProtection.XmlEncryption.EncryptedXmlDecryptor

Constructors

EncryptedXmlDecryptor()

Creates a new instance of an Microsoft.AspNetCore.DataProtection.XmlEncryption.EncryptedXmlDecryptor.

public EncryptedXmlDecryptor()
EncryptedXmlDecryptor(System.IServiceProvider)

Creates a new instance of an Microsoft.AspNetCore.DataProtection.XmlEncryption.EncryptedXmlDecryptor.

Arguments:services (System.IServiceProvider) – An optional System.IServiceProvider to provide ancillary services.
public EncryptedXmlDecryptor(IServiceProvider services)

Methods

Decrypt(System.Xml.Linq.XElement)

Decrypts the specified XML element.

Arguments:encryptedElement (System.Xml.Linq.XElement) – An encrypted XML element.
Return type:System.Xml.Linq.XElement
Returns:The decrypted form of <em>encryptedElement</em>.
public XElement Decrypt(XElement encryptedElement)