THPDFCMSAttributeSummary Record

Exposes structural CMS facts from the verification parser so profile preflight can report attribute cardinalities without walking the ASN.1 twice

Declaration

THPDFCMSAttributeSummary= record
  Parsed: boolean;
  EncapsulatedContentTypeOID: AnsiString;
  SignedContentTypeOID: AnsiString;
  SignedAttributeCount: Integer;
  UnsignedAttributeCount: Integer;
  ContentTypeCount: Integer;
  MessageDigestCount: Integer;
  SigningTimeCount: Integer;
  CommitmentTypeIndicationCount: Integer;
  SigningCertificateCount: Integer;
  SigningCertificateV2Count: Integer;
  SigningCertificateReferenceValid: boolean;
  SigningCertificateV2ReferenceValid: boolean;
  SigningCertificateV2HashAlgorithmOID: AnsiString;
  SignaturePolicyCount: Integer;
  SignatureTimestampCount: Integer;
  SignedDataCertificatesPresent: boolean;
  SignerCertificateIncluded: boolean;
  CertificateCount: Integer;
end;

Unit

HPDFSignVerify

Fields

FieldPurpose
ParsedTrue when the CMS structure parsed successfully; the other fields are only meaningful then
EncapsulatedContentTypeOIDOID of the encapsulated content type carried by the SignedData
SignedContentTypeOIDContent type declared by the signed content-type attribute of the signer
SignedAttributeCountNumber of attributes in the signer's signed attribute set
UnsignedAttributeCountNumber of attributes in the signer's unsigned attribute set
ContentTypeCountNumber of content-type attributes found
MessageDigestCountNumber of message-digest attributes found
SigningTimeCountNumber of signing-time attributes found
CommitmentTypeIndicationCountNumber of commitment-type indication attributes found
SigningCertificateCountNumber of ESS signing-certificate (v1) attributes found
SigningCertificateV2CountNumber of ESS signing-certificate-v2 attributes found
SigningCertificateReferenceValidTrue when the v1 attribute's certificate reference matches the actual signer certificate
SigningCertificateV2ReferenceValidTrue when the v2 attribute's certificate reference matches the actual signer certificate
SigningCertificateV2HashAlgorithmOIDHash algorithm OID used by the v2 certificate reference
SignaturePolicyCountNumber of signature-policy attributes found
SignatureTimestampCountNumber of signature timestamp attributes found
SignedDataCertificatesPresentTrue when the SignedData carries a certificate set at all
SignerCertificateIncludedTrue when the signer's own certificate is among the embedded certificates
CertificateCountNumber of certificates embedded in the SignedData

Usage notes

Related APIs