From d08cd566edccb8a748602c6f49667dca3f622331 Mon Sep 17 00:00:00 2001 From: Andreas Fitzek Date: Thu, 28 Nov 2013 14:25:29 +0100 Subject: start Refactoring --- pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/PdfAsImpl.java | 4 ---- .../at/gv/egiz/pdfas/lib/impl/signing/pdfbox/PdfboxSignerWrapper.java | 4 ++-- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl') diff --git a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/PdfAsImpl.java b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/PdfAsImpl.java index 2f2d47c8..ddfc79ce 100644 --- a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/PdfAsImpl.java +++ b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/PdfAsImpl.java @@ -110,10 +110,6 @@ public class PdfAsImpl implements PdfAs, IConfigurationConstants { this.stampPdf(status); - FileOutputStream fos = new FileOutputStream("/home/afitzek/qr_2_stamped.pdf"); - fos.write(status.getPdfObject().getStampedDocument()); - fos.close(); - /* * if (requestedSignature.isVisual()) { * logger.info("Creating visual siganture block"); // diff --git a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/signing/pdfbox/PdfboxSignerWrapper.java b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/signing/pdfbox/PdfboxSignerWrapper.java index 0420cd11..554a5b98 100644 --- a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/signing/pdfbox/PdfboxSignerWrapper.java +++ b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/signing/pdfbox/PdfboxSignerWrapper.java @@ -41,11 +41,11 @@ public class PdfboxSignerWrapper implements PDFASSignatureInterface { byteRange = PDFUtils.extractSignatureByteRange(data); try { byte[] signature = signer.sign(data, byteRange); - logger.debug("Signature Data: " + /*logger.debug("Signature Data: " + iaik.utils.Util.toBase64String(signature)); FileOutputStream fos = new FileOutputStream("/tmp/fos.bin"); fos.write(signature); - fos.close(); + fos.close();*/ return signature; } catch (PdfAsException e) { throw new PdfAsWrappedIOException(e); -- cgit v1.2.3