01.01.2015 Views

Acrobat Digital Signature API Reference - Adobe Partners

Acrobat Digital Signature API Reference - Adobe Partners

Acrobat Digital Signature API Reference - Adobe Partners

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

PubSec Methods<br />

PubSec <strong>Acrobat</strong> Address Book Methods<br />

2<br />

AABGetCertTrust<br />

PSSigTrust AABGetCertTrust (const ASUns8* inX509Cert,<br />

ASInt32 inX509CertSize, ASCab inCertChain,<br />

ASCab inHelperCerts);<br />

Description<br />

Finds the specified certificate in the <strong>Acrobat</strong> Address Book and returns the trust level.<br />

Parameters<br />

inX509Cert<br />

inX509CertSize<br />

inCertChain<br />

inHelperCerts<br />

The certificate identifier, as defined in X.509 (RFC 3280). This is a<br />

generic 8-bit pointer to the certificate data.<br />

The size in bytes of the X.509 certificate pointed to by<br />

inX509Cert.<br />

An ASCab containing the certificate chain for the certificate,<br />

with the trust level for each certificate. It starts with<br />

inX509Cert's issuer at index 0 and continues in the issuing<br />

order. Can be NULL if the chain is not available.<br />

An ASCab containing an unordered sequence of certificates that<br />

can be used to build the certificate chain. If inCertChain is<br />

NULL and inX509Cert is not self-signed, PubSec attempts to<br />

build a chain of certificates using a default mechanism.<br />

A certificate ASCab contains an entry for each certificate,with a<br />

0-based index followed by the X509 certificate as ASN1-encoded<br />

binary data; for example:<br />

{ ("0", cert1), ("1", cert2), ... }<br />

Return Value<br />

The trust value for the specified certificate, if found. If no certificate is found, returns<br />

kPSSigTrustUntrusted. To distinguish a certificate that is not found from one whose<br />

trust level is reported as untrusted, use AABIsCertPresent.<br />

Header File<br />

PubSecHFT.h<br />

Related Methods<br />

AABGetTrustedCerts<br />

AABIsCertPresent<br />

<strong>Acrobat</strong> <strong>Digital</strong> <strong>Signature</strong> <strong>API</strong> <strong>Reference</strong> 35

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!