XmlDocumentDecryptor Class

Class responsible for encrypting and decrypting XML.

Namespace
Microsoft.Extensions.Configuration.Xml
Assemblies
  • Microsoft.Extensions.Configuration.Xml

Syntax

public class XmlDocumentDecryptor
class Microsoft.Extensions.Configuration.Xml.XmlDocumentDecryptor

Constructors

XmlDocumentDecryptor()

Initializes a XmlDocumentDecryptor.

protected XmlDocumentDecryptor()

Methods

CreateDecryptingXmlReader(System.IO.Stream, System.Xml.XmlReaderSettings)

Returns an XmlReader that decrypts data transparently.

Return type:System.Xml.XmlReader
public XmlReader CreateDecryptingXmlReader(Stream input, XmlReaderSettings settings)
DecryptDocumentAndCreateXmlReader(System.Xml.XmlDocument)

Override to process encrypted XML.

Arguments:document (System.Xml.XmlDocument) – The document.
Return type:System.Xml.XmlReader
Returns:An XmlReader which can read the document.
protected virtual XmlReader DecryptDocumentAndCreateXmlReader(XmlDocument document)

Fields

Instance()

Accesses the singleton decryptor instance.

Return type:Microsoft.Extensions.Configuration.Xml.XmlDocumentDecryptor
public static readonly XmlDocumentDecryptor Instance