jasonmd
Wed, 25 Jun 2008 13:28:31 -0700
I am trying to retrieve the field values of a digital certificate. I have several lines of code that I think should get me most of the way there, however, I'm now stuck. I expected the PdfPKCS7.X509Name class to contain constant String values as keys to be used in a HashMap, however, the values are of type DERObjectIdentifier. How do you obtain the values for CN, O, OU, etc.? Code is below. Thanks in advance. -- Jason PdfPKCS7 pk = af.verifySignature(fieldName); Calender cal = pk.getSignDate(); boolean validSig = pk.verify(); X509Certificate cert = af.getSigningCertificate(); PdfPKCS7.X509Name xName = pk.getSubjectFields(cert).getFields(); // where do you go from here -- View this message in context: http://www.nabble.com/Retrieving-Certificate-subject-fields-tp18120740p18120740.html Sent from the iText - General mailing list archive at Nabble.com.
------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php
_______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Do you like iText? Buy the iText book: http://www.1t3xt.com/docs/book.php Or leave a tip: https://tipit.to/itexttipjar