The Encryption class / xml.Encryption methods |
Encrypts all child nodes of the ELEMENT DomNode node using the symmetric key, and returns them as one new EncryptedData node.
encryptElementContentDetached( node xml.DomNode ) RETURNING rnode xml.DomNode
Encrypts all child nodes of the ELEMENT DomNode node using the symmetric key, and returns them as one new EncryptedData node.
The resulting DomNode isn'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 nodes in clear form.
In case of error, the method throws an exception and sets the STATUS variable with the appropriate error number.