TPDFlibSignaturePermissionReport

Data types, security and signatures

Description

TPDFlibSignaturePermissionReport describes the certification and field-lock permissions a signature carries. TPDFlibSignatureVerificationReport embeds it as PermissionReport.

The record separates whether a constraint is present from whether it is structurally valid and whether the catalog or field references agree with it.

Syntax

Delphi

TPDFlibSignaturePermissionReport = Record
  FieldName: WideString;
  StructurallyValid: Boolean;
  HasDocMDP: Boolean;
  DocMDPLevel: Integer;
  CatalogDocMDPMatches: Boolean;
  HasFieldLock: Boolean;
  HasFieldMDP: Boolean;
  FieldMDPMatches: Boolean;
  FieldLockAction: AnsiString;
  FieldNames: TArray<WideString>;
End;

Fields

FieldNameFully qualified name of the signature field the report describes
StructurallyValidTrue when the DocMDP and FieldMDP structures parse and their references resolve
HasDocMDPTrue when the signature dictionary carries a DocMDP transform
DocMDPLevelCertification level 1 through 3 from the DocMDP transform, or 0 when absent
CatalogDocMDPMatchesTrue when the catalog's Perms dictionary points at this signature's DocMDP transform
HasFieldLockTrue when the signature field carries a FieldMDP field-lock action
HasFieldMDPTrue when a FieldMDP transform is present in the signature reference dictionary
FieldMDPMatchesTrue when the field-lock action and the FieldMDP transform agree
FieldLockActionThe field-lock action name, such as All, Include or Exclude, or an empty string when absent
FieldNamesField names named by an Include or Exclude lock, in document order

Remarks

A structurally invalid report means the permission constraints cannot be enforced or relied on, even if the signature itself verifies.

An absent DocMDP transform is different from level 0: HasDocMDP is False and DocMDPLevel is 0 when the signature does not certify the document.

See also

TPDFlibSignatureVerificationReport, VerifySignatureByIndex, VerifySignatureByName