SetSignProcessCommitmentType

Security and Signatures

Description

Sets the CAdES commitment-type-indication signed attribute for the PAdES-B-B signing path.

Syntax

Delphi

Function SetSignProcessCommitmentType(SignProcessID, CommitmentType: Integer): Integer;

Parameters

SignProcessIDValue returned by one of the NewSignProcessFrom* functions.
CommitmentType0 clears the attribute. 1..6 select id-cti-ets-proofOfOrigin, proofOfReceipt, proofOfDelivery, proofOfSender, proofOfApproval, or proofOfCreation.

Returns

Returns 1 when the value is accepted and the process exists; returns 0 for an invalid process id or an out-of-range commitment code.

Remarks

This attribute only affects the ETSI.CAdES.detached SubFilter path. PAdES Table 1 row d) forbids combining commitment-type-indication with the PDF Signature Dictionary /Reason key, so callers should avoid setting both.

See also

SetSignProcessCustomSubFilter