pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1646655 - /pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/CreateVisibleSignature.java
Date Fri, 19 Dec 2014 09:35:05 GMT
Author: tilman
Date: Fri Dec 19 09:35:04 2014
New Revision: 1646655

URL: http://svn.apache.org/r1646655
Log:
PDFBOX-2576: respect variable convention

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

Modified: pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/CreateVisibleSignature.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/CreateVisibleSignature.java?rev=1646655&r1=1646654&r2=1646655&view=diff
==============================================================================
--- pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/CreateVisibleSignature.java
(original)
+++ pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/CreateVisibleSignature.java
Fri Dec 19 09:35:04 2014
@@ -63,7 +63,7 @@ import org.bouncycastle.operator.bc.BcRS
  */
 public class CreateVisibleSignature implements SignatureInterface
 {
-    private static final BouncyCastleProvider provider = new BouncyCastleProvider();
+    private static final BouncyCastleProvider BCPROVIDER = new BouncyCastleProvider();
 
     private final PrivateKey privKey;
     private final Certificate[] cert;
@@ -238,7 +238,7 @@ public class CreateVisibleSignature impl
         else
         {
             File ksFile = new File(args[0]);
-            KeyStore keystore = KeyStore.getInstance("PKCS12", provider);
+            KeyStore keystore = KeyStore.getInstance("PKCS12", BCPROVIDER);
             char[] pin = args[1].toCharArray();
             keystore.load(new FileInputStream(ksFile), pin);
 



Mime
View raw message