xml.Signature.SignString

Sign the passed string according to the specified key.

Syntax

SignString(
  key xml.CryptoKey,
  str STRING
 )
 RETURNS STRING
  1. key defines the key to be used for the signature.
  2. str defines the string to be signed.

Usage

The key can be a HMAC key, a RSA private key, or a DSA private key. The signing process is performed with SHA-1 digest, as recommended by the XMLSec specification.

Returns sig, or the signature in base64 format.

This method does not belong to the XML encryption specification.

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