xml.Signature.signString
Sign the passed string according to the specified key.
Syntax
signString(
key xml.CryptoKey,
str STRING
)
RETURNS STRING
- key defines the key to be used for the signature.
- 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).