aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api
diff options
context:
space:
mode:
authorAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2013-12-12 13:31:47 +0100
committerAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2013-12-12 13:31:47 +0100
commita465414ecb2bc2792bb56a17d5ae4e883d8c3a88 (patch)
treea445844289f1f5e815e1c517a3302c9f0912291a /pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api
parent863f99753af19b3f5ce354d4d1ff0a5e8a4f32dd (diff)
downloadpdf-as-4-a465414ecb2bc2792bb56a17d5ae4e883d8c3a88.tar.gz
pdf-as-4-a465414ecb2bc2792bb56a17d5ae4e883d8c3a88.tar.bz2
pdf-as-4-a465414ecb2bc2792bb56a17d5ae4e883d8c3a88.zip
Moved harded messages to common.properties
Diffstat (limited to 'pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api')
-rw-r--r--pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api/PdfAs.java7
-rw-r--r--pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api/PdfAsFactory.java17
2 files changed, 9 insertions, 15 deletions
diff --git a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api/PdfAs.java b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api/PdfAs.java
index 76e760bd..2711afe2 100644
--- a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api/PdfAs.java
+++ b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api/PdfAs.java
@@ -8,12 +8,7 @@ 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;
-public interface PdfAs {
-
- // Sign
- // Verify
- // Get Configuration
-
+public interface PdfAs {
/**
* Signs a PDF document using PDF-AS.
*
diff --git a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api/PdfAsFactory.java b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api/PdfAsFactory.java
index 8011e1eb..bd7c9d3e 100644
--- a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api/PdfAsFactory.java
+++ b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api/PdfAsFactory.java
@@ -33,12 +33,7 @@ public class PdfAsFactory {
static {
PropertyConfigurator.configure(ClassLoader
.getSystemResourceAsStream("resources/log4j.properties"));
- // BasicConfigurator.configure();
-
- // iaik.security.ecc.provider.ECCProvider.addAsProvider();
IAIK.addAsProvider();
- // ECCProvider.addAsProvider();
- // install security provider
ECCelerate.addAsProvider();
}
@@ -89,6 +84,14 @@ public class PdfAsFactory {
return param;
}
+ /**
+ * Deploy default configuration to targetDirectory
+ *
+ * The targetDirectory will be deleted and
+ *
+ * @param targetDirectory
+ * @throws Exception
+ */
public static void deployDefaultConfiguration(File targetDirectory)
throws Exception {
if (targetDirectory.exists()) {
@@ -100,10 +103,6 @@ public class PdfAsFactory {
}
InputStream is = ClassLoader
.getSystemResourceAsStream(DEFAULT_CONFIG_RES);
- // URL zipUrl = ClassLoader.getSystemResource(DEFAULT_CONFIG_RES);
- // logger.debug("CONFIG URI: " + zipUrl.toURI().toString());
- // File zipFile = new File(zipUrl.toURI());
- // ZipFile zip = null;
ZipInputStream zip = null;
try {
zip = new ZipInputStream(is);