pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1844844 - /pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/validation/OcspHelper.java
Date Thu, 25 Oct 2018 17:07:10 GMT
Author: tilman
Date: Thu Oct 25 17:07:10 2018
New Revision: 1844844

URL: http://svn.apache.org/viewvc?rev=1844844&view=rev
Log:
PDFBOX-3017: use singleton

Modified:
    pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/validation/OcspHelper.java

Modified: pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/validation/OcspHelper.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/validation/OcspHelper.java?rev=1844844&r1=1844843&r2=1844844&view=diff
==============================================================================
--- pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/validation/OcspHelper.java
(original)
+++ pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/validation/OcspHelper.java
Thu Oct 25 17:07:10 2018
@@ -31,6 +31,7 @@ import java.util.Random;
 
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
+import org.apache.pdfbox.pdmodel.encryption.SecurityProvider;
 import org.apache.pdfbox.util.Hex;
 import org.bouncycastle.asn1.DEROctetString;
 import org.bouncycastle.asn1.DLSequence;
@@ -281,7 +282,7 @@ public class OcspHelper
      */
     private OCSPReq generateOCSPRequest() throws OCSPException, IOException
     {
-        Security.addProvider(new BouncyCastleProvider());
+        Security.addProvider(SecurityProvider.getProvider());
 
         // Generate the ID for the certificate we are looking for
         CertificateID certId;



Mime
View raw message