pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1847952 - /pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/signature/cert/OcspHelper.java
Date Sun, 02 Dec 2018 10:34:47 GMT
Author: tilman
Date: Sun Dec  2 10:34:47 2018
New Revision: 1847952

URL: http://svn.apache.org/viewvc?rev=1847952&view=rev
Log:
PDFBOX-3017: throw exception when neither name nor keyhash

Modified:
    pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/signature/cert/OcspHelper.java

Modified: pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/signature/cert/OcspHelper.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/signature/cert/OcspHelper.java?rev=1847952&r1=1847951&r2=1847952&view=diff
==============================================================================
--- pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/signature/cert/OcspHelper.java
(original)
+++ pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/signature/cert/OcspHelper.java
Sun Dec  2 10:34:47 2018
@@ -171,6 +171,10 @@ public class OcspHelper
                 {
                     findResponderCertificateByKeyHash(basicResponse, keyHash);
                 }
+                else
+                {
+                    throw new OCSPException("OCSP: basic response must provide name or key
hash");
+                }
             }
 
             if (ocspResponderCertificate == null)



Mime
View raw message