The Signature class / xml.Signature methods |
Sign the passed string according to the specified key.
signString( key xml.CryptoKey, strToSign STRING ) RETURNING sig STRING
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).