pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1868147 - /pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/signature/validation/CertInformationHelper.java
Date Tue, 08 Oct 2019 16:07:07 GMT
Author: tilman
Date: Tue Oct  8 16:07:07 2019
New Revision: 1868147

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

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

Modified: pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/signature/validation/CertInformationHelper.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/signature/validation/CertInformationHelper.java?rev=1868147&r1=1868146&r2=1868147&view=diff
==============================================================================
--- pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/signature/validation/CertInformationHelper.java
(original)
+++ pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/signature/validation/CertInformationHelper.java
Tue Oct  8 16:07:07 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();



Mime
View raw message