xml.CryptoKey.setKey

Defines the value of a HMAC or Symmetric key.

Syntax

setKey(
   key STRING )
  1. key is the value.

Usage

The value can be a password and must be of the size corresponding to the key identifier.

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).