THPDFSignaturePolicyInfo Record
Describes the signature-policy attribute of a CMS signature and how its identifier and hash validated
Declaration
THPDFSignaturePolicyInfo= record
Present: boolean;
IdentifierOID: AnsiString;
HashAlgorithm: AnsiString;
HashAlgorithmOID: AnsiString;
HashValue: TBytes;
HashIsUnknown: boolean;
Qualifiers: THPDFSignaturePolicyQualifierArray;
ValidationStatus: THPDFSignaturePolicyValidationStatus;
end;
Unit
HPDFSignVerify
Fields
| Field | Purpose |
|---|---|
Present | True when the signature carries a signature-policy attribute |
IdentifierOID | Policy identifier OID declared by the attribute |
HashAlgorithm | Display name of the policy hash algorithm |
HashAlgorithmOID | OID of the policy hash algorithm |
HashValue | Policy hash value carried by the attribute |
HashIsUnknown | True when the hash algorithm is not recognized, so the hash cannot be recomputed for comparison |
Qualifiers | Policy qualifiers as THPDFSignaturePolicyQualifierArray elements of THPDFSignaturePolicyQualifier, such as CPS URIs and user notices |
ValidationStatus | THPDFSignaturePolicyValidationStatus verdict for the attribute, from not-present through hash mismatch |
Policy qualifiers
Each THPDFSignaturePolicyQualifier carries Kind, OID, URI, ExplicitText, NoticeOrganization, NoticeNumbers, DocumentSpecificationOID, and the original RawValueDER
Kind is a THPDFSignaturePolicyQualifierKind value: spqkUnknown for an unrecognized qualifier, spqkURI for a CPS pointer, spqkUserNotice for a user notice, and spqkDocumentSpecification for a document specification
Usage notes
- With
Presentfalse the signature carries no policy attribute and the validation status readsspvsNotPresent - Policy pinning on
THPDFCMSVerifyOptionscomparesIdentifierOIDandHashValueagainst expected values and can verify the policy document hash itself - The record attaches to
THPDFSignatureInfo.SignaturePolicyon every verified signature