summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites
diff options
context:
space:
mode:
authortkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 18:59:11 +0000
committertkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 18:59:11 +0000
commit7b3d85e31537acc7da994aebeece26bbdf2ecc7a (patch)
tree9e3c23a3b558f68fc266ceb537045619c65f2bed /pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites
parent6684441798e6fdb899f4e67e39a42ccd40e8a607 (diff)
downloadmocca-7b3d85e31537acc7da994aebeece26bbdf2ecc7a.tar.gz
mocca-7b3d85e31537acc7da994aebeece26bbdf2ecc7a.tar.bz2
mocca-7b3d85e31537acc7da994aebeece26bbdf2ecc7a.zip
+ Fixed unverifyable Handy signature signatures ... (A-Trust cuts away
base64 encoded signature data!) + Moved logfile to {user.home}/.pdfover + temporary pdf files will be saved into {user.home}/.pdfover (no write access in Program folder of windows!) git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@67 174cde9d-5d70-4d2a-aa98-46368bc2aaf7
Diffstat (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/OutputComposite.java11
1 files changed, 10 insertions, 1 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/OutputComposite.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/OutputComposite.java
index 84801702..1b24b678 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/OutputComposite.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/OutputComposite.java
@@ -107,7 +107,7 @@ public class OutputComposite extends StateComposite {
// Save as temp file ...
java.util.Date date= new java.util.Date();
String fileName = String.format("%d_tmp_signed.pdf", date.getTime()); //$NON-NLS-1$
- open = new File(fileName);
+ open = new File(OutputComposite.this.tempDirectory + "/" + fileName); //$NON-NLS-1$
FileOutputStream outstream = new FileOutputStream(open);
outstream.write(source.getByteArray(), 0,
source.getByteArray().length);
@@ -180,6 +180,15 @@ public class OutputComposite extends StateComposite {
this.pack();
}
+ String tempDirectory;
+
+ /**
+ * @param tempDirectory
+ */
+ public void setTempDirectory(String tempDirectory) {
+ this.tempDirectory = tempDirectory;
+ }
+
/**
* Gets the signed document
* @return the signed document