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 limpa o atributo. 1..6 selecionam id-cti-ets-proofOfOrigin, proofOfReceipt, proofOfDelivery, proofOfSender, proofOfApproval, ou 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