xml.Encryption.setKey
Assigns a copy of the symmetric key to this encryption object.
Syntax
setKey(
key xml.CryptoKey )
- 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).