Encrypt an XML document according to the XSPP.
Namespace: Nehta.VendorLibrary.SM.SMDAssembly: Nehta.VendorLibrary.SM.SMD (in Nehta.VendorLibrary.SM.SMD.dll) Version: 1.0.5.0 (1.0.5.0)
Syntax
C# |
---|
public static XmlDocument XspEncrypt( this XmlDocument document, X509Certificate2 encryptionCert ) |
Visual Basic |
---|
<ExtensionAttribute> _ Public Shared Function XspEncrypt ( _ document As XmlDocument, _ encryptionCert As X509Certificate2 _ ) As XmlDocument |
Visual C++ |
---|
[ExtensionAttribute] public: static XmlDocument^ XspEncrypt( XmlDocument^ document, X509Certificate2^ encryptionCert ) |
Parameters
- document
- Type: System.Xml..::..XmlDocument
The XML document to be encrypted.
- encryptionCert
- Type: System.Security.Cryptography.X509Certificates..::..X509Certificate2
The certificate to encrypt the XML document with.