You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ti...@apache.org on 2019/10/08 16:07:02 UTC

svn commit: r1868146 - /pdfbox/branches/issue45/examples/src/main/java/org/apache/pdfbox/examples/signature/validation/CertInformationHelper.java

Author: tilman
Date: Tue Oct  8 16:07:02 2019
New Revision: 1868146

URL: http://svn.apache.org/viewvc?rev=1868146&view=rev
Log:
PDFBOX-3017: revert deletion of double code line because it was needed, clarify comment

Modified:
    pdfbox/branches/issue45/examples/src/main/java/org/apache/pdfbox/examples/signature/validation/CertInformationHelper.java

Modified: pdfbox/branches/issue45/examples/src/main/java/org/apache/pdfbox/examples/signature/validation/CertInformationHelper.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/issue45/examples/src/main/java/org/apache/pdfbox/examples/signature/validation/CertInformationHelper.java?rev=1868146&r1=1868145&r2=1868146&view=diff
==============================================================================
--- pdfbox/branches/issue45/examples/src/main/java/org/apache/pdfbox/examples/signature/validation/CertInformationHelper.java (original)
+++ pdfbox/branches/issue45/examples/src/main/java/org/apache/pdfbox/examples/signature/validation/CertInformationHelper.java Tue Oct  8 16:07:02 2019
@@ -116,9 +116,10 @@ public class CertInformationHelper
 
             ASN1TaggedObject taggedObject = (ASN1TaggedObject) obj.getObjectAt(0);
             taggedObject = (ASN1TaggedObject) taggedObject.getObject();
+            taggedObject = (ASN1TaggedObject) taggedObject.getObject(); // yes stmt is twice
             if (!(taggedObject.getObject() instanceof ASN1OctetString))
             {
-                // happens with SampleSignedPDFDocument.pdf
+                // happens with http://blogs.adobe.com/security/SampleSignedPDFDocument.pdf
                 continue;
             }
             ASN1OctetString uri = (ASN1OctetString) taggedObject.getObject();