From 11c4bfac46f66ab3ba24b6354a6a372da40c0b1f Mon Sep 17 00:00:00 2001 From: Andreas Fitzek Date: Thu, 9 Jan 2014 12:52:06 +0100 Subject: PDF-AS web Developments --- pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api/PdfAsFactory.java | 4 ++-- .../main/java/at/gv/egiz/sl/util/ISignatureConnectorSLWrapper.java | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'pdf-as-lib/src/main/java/at/gv/egiz') 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 bd7c9d3e..b73cc9af 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 @@ -31,8 +31,8 @@ public class PdfAsFactory { private static final String DEFAULT_CONFIG_RES = "config/config.zip"; static { - PropertyConfigurator.configure(ClassLoader - .getSystemResourceAsStream("resources/log4j.properties")); + /*PropertyConfigurator.configure(ClassLoader + .getSystemResourceAsStream("resources/log4j.properties"));*/ IAIK.addAsProvider(); ECCelerate.addAsProvider(); } diff --git a/pdf-as-lib/src/main/java/at/gv/egiz/sl/util/ISignatureConnectorSLWrapper.java b/pdf-as-lib/src/main/java/at/gv/egiz/sl/util/ISignatureConnectorSLWrapper.java index 273f08ab..75b10c4c 100644 --- a/pdf-as-lib/src/main/java/at/gv/egiz/sl/util/ISignatureConnectorSLWrapper.java +++ b/pdf-as-lib/src/main/java/at/gv/egiz/sl/util/ISignatureConnectorSLWrapper.java @@ -54,8 +54,7 @@ public class ISignatureConnectorSLWrapper implements ISignatureConnector { } } } catch (CertificateException e) { - // TODO Auto-generated catch block - e.printStackTrace(); + throw new PdfAsSignatureException("error.pdf.sig.01", e); } return certificate; } -- cgit v1.2.3