IAuthenticatedEncryptorDescriptor.ExportToXml Method

Definition

Exports the current descriptor to XML.

public:
 Microsoft::AspNetCore::DataProtection::AuthenticatedEncryption::ConfigurationModel::XmlSerializedDescriptorInfo ^ ExportToXml();
public Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.XmlSerializedDescriptorInfo ExportToXml ();
abstract member ExportToXml : unit -> Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.XmlSerializedDescriptorInfo
Public Function ExportToXml () As XmlSerializedDescriptorInfo

Returns

An XmlSerializedDescriptorInfo wrapping the XElement which represents the serialized current descriptor object. The deserializer type must be assignable to IAuthenticatedEncryptorDescriptorDeserializer.

Remarks

If an element contains sensitive information (such as key material), the element should be marked via the MarkAsRequiresEncryption(XElement) extension method, and the caller should encrypt the element before persisting the XML to storage.

Applies to