xml.Encryption.decryptElementContentDetached

Decrypts the encrypted data DomNode using the symmetric key, and returns all its children in one new document fragment type xml.DomNode.

Syntax

decryptElementContentDetached(
   node xml.DomNode )
  RETURNS xml.DomNode
  1. node defines the encrypted DomNode.

Usage

This method decrypts the EncryptedData DomNode referenced by node and returns all its children in one new DOCUMENT_FRAGMENT_NODE node.

The resulting child nodes are not added at any place in the XML document. It's up to the user to insert them in the right place, and to remove the encrypted node.

In case of error, the method throws an exception and sets the status variable. Depending on the error, a human-readable description of the problem is available in the sqlca.sqlerrm register. See Error handling in GWS calls (status).