xml.Signature.setCertificate

Defines the X509 certificate to be added to the signature object when signing a document.

Syntax

setCertificate(
   cert xml.CryptoX509 )
  1. cert defines the X509 certificate to be added.

Usage

If NULL, no certificate is added.

During the computation of the signature, some certificate information can be added based on the feature set on that CryptoX509 object. If no features are set, the complete X509 certificate is automatically added.

During the verification of a signature the certificate set with the setCertificate method isn't used. See XML Signature concepts for more details.

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