THPDFSignaturePolicyInfo Record
Describes the signature-policy attribute of a CMS signature, along with 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 where the signature carries a signature-policy attribute |
IdentifierOID | Policy identifier OID that the attribute declares |
HashAlgorithm | Display name for the policy hash algorithm |
HashAlgorithmOID | OID for the policy hash algorithm |
HashValue | Policy hash value that the attribute carries |
HashIsUnknown | True where the hash algorithm goes unrecognised, so the hash cannot be recomputed for comparison |
Qualifiers | Policy qualifiers held as THPDFSignaturePolicyQualifierArray elements of THPDFSignaturePolicyQualifier, such as CPS URIs and user notices |
ValidationStatus | THPDFSignaturePolicyValidationStatus verdict for the attribute, running from not-present through to 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 unrecognised qualifier, spqkURI for a CPS pointer, spqkUserNotice for a user notice, and spqkDocumentSpecification for a document specification
Usage notes
- Where
Presentis false the signature carries no policy attribute and the validation status readsspvsNotPresent - Policy pinning on
THPDFCMSVerifyOptionschecksIdentifierOIDandHashValueagainst the expected values and can verify the policy document hash itself - The record hangs off
THPDFSignatureInfo.SignaturePolicyon every verified signature