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
| FieldName | Fully qualified name of the signature field the report describes |
|---|---|
| StructurallyValid | True when the DocMDP and FieldMDP structures parse and their references resolve |
| HasDocMDP | True when the signature dictionary carries a DocMDP transform |
| DocMDPLevel | Certification level 1 through 3 from the DocMDP transform, or 0 when absent |
| CatalogDocMDPMatches | True when the catalog's Perms dictionary points at this signature's DocMDP transform |
| HasFieldLock | True when the signature field carries a FieldMDP field-lock action |
| HasFieldMDP | True when a FieldMDP transform is present in the signature reference dictionary |
| FieldMDPMatches | True when the field-lock action and the FieldMDP transform agree |
| FieldLockAction | The field-lock action name, such as All, Include or Exclude, or an empty string when absent |
| FieldNames | Field 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