SetSignProcessCommitmentType

Security and Signatures

Description

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

Syntax

Delphi

Function TPDFlib.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.

Return values

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.

The default native PFX provider on non-Windows platforms supports this attribute with RSA, RSA-PSS and ECDSA signing; a non-empty Reason combined with commitment or policy attributes fails standard signing-process validation, and an empty PAdES Reason entry is omitted

See Native CMS signed attributes for the limits of native processing

See also

SetSignProcessCustomSubFilter