Has anyone worked with the trustFlags property of the SignatureInfo object? Using JavaScript I'm accessing this property of various certificate signatures / certified documents in order to determine what level of trust has been assigned to them using Manage Trusted Identities in Acrobat. The bits in this value are supposed to indicate this.
The only value I can access regardless of certificate and trust setting is "65527". In the absence of good documentation I can't make any more sense out of this. Anyone have any idea?
I think this is one of those details that nobody ever uses, so it's never really been tested and is probably full of bugs. "65527" translates to 0xFFF7. That looks like a default, and possibly bogus, value to me. It indicates that it's trusted for everything except signatures.
But are you sure your using it correctly. The JS Reference states that this value is only valid when the signature is valid and the identity of the signer is valid. I don't know exactly that the last part means.
It's also not clear from the JS ref where the trust is set. You'd think it would be the trust manager, but the ref gives the Acrobat Address Book (adobe.AAB) as an example. whatever that is.
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script