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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

PubSec Methods<br />

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

2<br />

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

These methods allow you to manage certificates in the <strong>Acrobat</strong> Address Book (AAB).<br />

AABFindCertsByName<br />

void AABFindCertsByName (const ASUns8* inCertNameData,<br />

ASInt32 inCertNameSize, ASCab outResults);<br />

Description<br />

Does a lookup in the <strong>Acrobat</strong> Address Book by certificate subject name. Returns all<br />

certificates that match the name along with trust information associated with them.<br />

The returned ASCab contains:<br />

● An entry for each certificate, with a 0-based index followed by the X509 certificate as<br />

ASN1-encoded binary data<br />

● An entry with a key Tn containing the associated trust value of each certificate, where n<br />

corresponds to the certificate’s index key.<br />

If a trust key is missing, the value should be assumed to be untrusted. For example:<br />

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

In this case, cert1 is untrusted, cert2 is trusted for authentic documents.<br />

Parameters<br />

inCertNameData<br />

inCertNameSize<br />

outResults<br />

The subject name of the certificates to find. Specify a BERencoded<br />

value of ASN.1 type Name defined in X.509 (RFC 3280).<br />

The size of the certificate subject name data.<br />

(Filled by the method) An ASCab containing any certificates found<br />

by the lookup and their trust information.<br />

Return Value<br />

true if successful, false otherwise.<br />

Header File<br />

PubSecHFT.h<br />

Related Methods<br />

AABGetCertTrust<br />

AABGetTrustedCerts<br />

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

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

Saved successfully!

Ooh no, something went wrong!