The Encryption class / xml.Encryption methods |
Decrypts the EncryptedData DomNode enc using the symmetric key, and returns all its children in one new DOCUMENT_FRAGMENT_NODE node.
decryptElementContentDetached( enc xml.DomNode ) RETURNING node xml.DomNode
Returns all its children in one new DOCUMENT_FRAGMENT_NODE node.
The resulting child nodes aren't added at any place in the XML document. It's up to the user to insert it at the right place, and to remove the encrypted node.
In case of error, the method throws an exception and sets the STATUS variable with the appropriate error number.