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 is 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 according to 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 with the appropriate error number.