diff options
author | Tobias Kellner <tobias.kellner@iaik.tugraz.at> | 2014-03-15 00:19:36 +0100 |
---|---|---|
committer | Tobias Kellner <tobias.kellner@iaik.tugraz.at> | 2014-04-03 15:38:36 +0200 |
commit | 0f8777952974daf03099bf48c6db1d91bd431bb2 (patch) | |
tree | b5a4c2f2e8b3420ea8317bcfbeddd360ab99e38c /pdf-as-cli/src/main/java/at/gv/egiz | |
parent | 6a7fcab53bb00b4eb59cc41b1a8de81ab81e2b19 (diff) | |
download | pdf-as-4-0f8777952974daf03099bf48c6db1d91bd431bb2.tar.gz pdf-as-4-0f8777952974daf03099bf48c6db1d91bd431bb2.tar.bz2 pdf-as-4-0f8777952974daf03099bf48c6db1d91bd431bb2.zip |
Remove unused imports and variables
Diffstat (limited to 'pdf-as-cli/src/main/java/at/gv/egiz')
-rw-r--r-- | pdf-as-cli/src/main/java/at/gv/egiz/pdfas/cli/DeveloperMain.java | 22 | ||||
-rw-r--r-- | pdf-as-cli/src/main/java/at/gv/egiz/pdfas/cli/Main.java | 4 |
2 files changed, 2 insertions, 24 deletions
diff --git a/pdf-as-cli/src/main/java/at/gv/egiz/pdfas/cli/DeveloperMain.java b/pdf-as-cli/src/main/java/at/gv/egiz/pdfas/cli/DeveloperMain.java index c1201cb5..ccf4b80e 100644 --- a/pdf-as-cli/src/main/java/at/gv/egiz/pdfas/cli/DeveloperMain.java +++ b/pdf-as-cli/src/main/java/at/gv/egiz/pdfas/cli/DeveloperMain.java @@ -24,28 +24,8 @@ package at.gv.egiz.pdfas.cli; import java.io.File; -import java.io.FileInputStream; -import java.io.FileNotFoundException; -import java.io.FileOutputStream; -import java.io.IOException; -import at.gv.egiz.pdfas.common.exceptions.PdfAsException; -import at.gv.egiz.pdfas.common.utils.StreamUtils; -import at.gv.egiz.pdfas.lib.api.ByteArrayDataSink; -import at.gv.egiz.pdfas.lib.api.ByteArrayDataSource; -import at.gv.egiz.pdfas.lib.api.Configuration; -import at.gv.egiz.pdfas.lib.api.PdfAs; import at.gv.egiz.pdfas.lib.api.PdfAsFactory; -import at.gv.egiz.pdfas.lib.api.StatusRequest; -import at.gv.egiz.pdfas.lib.api.sign.IPlainSigner; -import at.gv.egiz.pdfas.lib.api.sign.SignParameter; -import at.gv.egiz.pdfas.lib.api.verify.VerifyParameter; -import at.gv.egiz.pdfas.lib.impl.VerifyParameterImpl; -import at.gv.egiz.pdfas.lib.impl.signing.pdfbox.PADESPDFBOXSigner; -import at.gv.egiz.pdfas.sigs.pades.PAdESSigner; -import at.gv.egiz.pdfas.sigs.pkcs7detached.PKCS7DetachedSigner; -import at.gv.egiz.sl.util.BKUSLConnector; -import at.gv.egiz.sl.util.MOAConnector; public class DeveloperMain { @@ -62,7 +42,7 @@ public class DeveloperMain { String user_home = System.getProperty("user.home"); String pdfas_dir = user_home + File.separator + ".pdfas"; - PdfAs pdfas = PdfAsFactory.createPdfAs(new File(pdfas_dir)); + /*PdfAs pdfas = */PdfAsFactory.createPdfAs(new File(pdfas_dir)); System.out.println(PdfAsFactory.getVersion()); return; diff --git a/pdf-as-cli/src/main/java/at/gv/egiz/pdfas/cli/Main.java b/pdf-as-cli/src/main/java/at/gv/egiz/pdfas/cli/Main.java index e9bbdc59..34e384ad 100644 --- a/pdf-as-cli/src/main/java/at/gv/egiz/pdfas/cli/Main.java +++ b/pdf-as-cli/src/main/java/at/gv/egiz/pdfas/cli/Main.java @@ -46,12 +46,10 @@ import at.gv.egiz.pdfas.lib.api.PdfAs; import at.gv.egiz.pdfas.lib.api.PdfAsFactory; import at.gv.egiz.pdfas.lib.api.sign.IPlainSigner; import at.gv.egiz.pdfas.lib.api.sign.SignParameter; -import at.gv.egiz.pdfas.lib.api.sign.SignResult; import at.gv.egiz.pdfas.lib.api.verify.VerifyParameter; import at.gv.egiz.pdfas.lib.api.verify.VerifyResult; import at.gv.egiz.pdfas.sigs.pades.PAdESSigner; import at.gv.egiz.pdfas.sigs.pades.PAdESSignerKeystore; -import at.gv.egiz.pdfas.sigs.pkcs7detached.PKCS7DetachedSigner; import at.gv.egiz.sl.util.BKUSLConnector; import at.gv.egiz.sl.util.MOAConnector; @@ -393,7 +391,7 @@ public class Main { signParameter.setSignatureProfileId(profilID); System.out.println("Starting signature for " + pdfFile); System.out.println("Selected signature Profile " + profilID); - SignResult result = pdfAs.sign(signParameter); + /*SignResult result = */pdfAs.sign(signParameter); FileOutputStream fos = new FileOutputStream(outputPdfFile, false); fos.write(dataSink.getData()); |