xml.Encryption.decryptElementDetached

Decrypts the EncryptedData DomNode enc using the symmetric key, and returns it in a new ELEMENT node

Syntax

decryptElementDetached(
   enc xml.DomNode )
  RETURNING node xml.DomNode
  1. enc is the encrypted DomNode.

Usage

The resulting DomNode and its children 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.