xml.Encryption.setKey

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

Syntax

setKey(
   key xml.CryptoKey )
  1. key defines 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. 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).