xml.Encryption.setKey

Assigns a copy of the symmetric key to this Encryption object.

Syntax

setKey(
   key xml.CryptoKey )
  1. key is the symmetric key.

Usage

Any further XML document or node encryption or decryption will use that symmetric key.

When decrypting a XML document that has an embedded symmetric key, the embedded key will be used instead.

In case of error, the method throws an exception and sets the STATUS variable with the appropriate error number.