EncryptedXmlInfo Class¶
Wraps an System.Xml.Linq.XElement
that contains a blob of encrypted XML
and information about the class which can be used to decrypt it.
- Namespace
Microsoft.AspNetCore.DataProtection.XmlEncryption
- Assemblies
- Microsoft.AspNetCore.DataProtection
Syntax¶
public sealed class EncryptedXmlInfo
-
class
Microsoft.AspNetCore.DataProtection.XmlEncryption.
EncryptedXmlInfo
Constructors¶
-
EncryptedXmlInfo
(System.Xml.Linq.XElement, System.Type)¶ Creates an instance of an
Microsoft.AspNetCore.DataProtection.XmlEncryption.EncryptedXmlInfo
.Arguments: - encryptedElement (System.Xml.Linq.XElement) – A piece of encrypted XML.
- decryptorType (System.Type) – The class whose
Microsoft.AspNetCore.DataProtection.XmlEncryption.IXmlDecryptor.Decrypt(System.Xml.Linq.XElement)
method can be used to decrypt <em>encryptedElement</em>.
public EncryptedXmlInfo(XElement encryptedElement, Type decryptorType)
-
Properties¶
-
Microsoft.AspNetCore.DataProtection.XmlEncryption.EncryptedXmlInfo.
DecryptorType
¶ The class whose
Microsoft.AspNetCore.DataProtection.XmlEncryption.IXmlDecryptor.Decrypt(System.Xml.Linq.XElement)
method can be used to decrypt the value stored inMicrosoft.AspNetCore.DataProtection.XmlEncryption.EncryptedXmlInfo.EncryptedElement
.Return type: System.Type public Type DecryptorType { get; }
-
Microsoft.AspNetCore.DataProtection.XmlEncryption.EncryptedXmlInfo.
EncryptedElement
¶ A piece of encrypted XML.
Return type: System.Xml.Linq.XElement public XElement EncryptedElement { get; }
-