xml.Encryption.decryptElementDetached

Decrypts the specified encrypted data DomNode using the symmetric key, and returns it in a new element xml.DomNode.

Syntax

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

Usage

This method decrypts the EncryptedData DomNode node. The resulting element DomNode and its children are not 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. 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).