summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src/main/java
diff options
context:
space:
mode:
authorAndreas Abraham <andreas.abraham@egiz.gv.at>2020-11-25 10:33:25 +0100
committerAndreas Abraham <andreas.abraham@egiz.gv.at>2020-11-25 10:33:25 +0100
commitc5d9bde3cbec6d2a5344186feb9bb9dac275c17a (patch)
treec7658292015caf5925f5137e8864f867e8904341 /pdf-over-gui/src/main/java
parente39bbddffd31c5900f47f6c0ceb9fc66037f040b (diff)
downloadpdf-over-c5d9bde3cbec6d2a5344186feb9bb9dac275c17a.tar.gz
pdf-over-c5d9bde3cbec6d2a5344186feb9bb9dac275c17a.tar.bz2
pdf-over-c5d9bde3cbec6d2a5344186feb9bb9dac275c17a.zip
disabled siganture placeholder preview
Diffstat (limited to 'pdf-over-gui/src/main/java')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku/mobile/ATrustHandler.java3
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SimpleConfigurationComposite.java1
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/utils/SignaturePlaceholderCache.java6
3 files changed, 6 insertions, 4 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku/mobile/ATrustHandler.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku/mobile/ATrustHandler.java
index c52aba0c..7d3f986a 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku/mobile/ATrustHandler.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku/mobile/ATrustHandler.java
@@ -508,8 +508,7 @@ public class ATrustHandler extends MobileBKUHandler {
try {
do {
- String baseUrl = "https://www.handy-signatur.at/mobile/https-security-layer-request/";
- urlconnection = new URL(/*status.getBaseURL()*/ baseUrl + "/UndecidedPolling.aspx?sid=" + status.getSessionID()) //$NON-NLS-1$
+ urlconnection = new URL(status.getBaseURL() + "/UndecidedPolling.aspx?sid=" + status.getSessionID()) //$NON-NLS-1$
.openConnection();
InputStream in = new BufferedInputStream(urlconnection.getInputStream());
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SimpleConfigurationComposite.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SimpleConfigurationComposite.java
index a89ff972..9b1532b1 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SimpleConfigurationComposite.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SimpleConfigurationComposite.java
@@ -654,6 +654,7 @@ public class SimpleConfigurationComposite extends BaseConfigurationComposite {
param.setEmblem(new CachedFileNameEmblem(image));
}
//TODO deactivated the placeholder preview
+ //TODO display accurate placeholder preview -> now its only standard placeholder shown
//img = SignaturePlaceholderCache.getSWTPlaceholder(param);
}
} catch (Exception e) {
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/utils/SignaturePlaceholderCache.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/utils/SignaturePlaceholderCache.java
index 124a3aaf..6ef2d909 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/utils/SignaturePlaceholderCache.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/utils/SignaturePlaceholderCache.java
@@ -105,7 +105,8 @@ public class SignaturePlaceholderCache {
sigEmbl.equals(sigProps.getProperty(sigEmblProp)) &&
sigEHsh.equals(sigProps.getProperty(sigEHshProp)) &&
sigNote.equals(sigProps.getProperty(sigNoteProp)) &&
- sigPdfA.equals(sigProps.getProperty(sigPdfAProp)) ) {
+ sigPdfA.equals(sigProps.getProperty(sigPdfAProp)) &&
+ profile.equals(sigProps.getProperty(sigProfProp))) {
log.debug("Placeholder cache hit"); //$NON-NLS-1$
return loadImage(fileDir, imgFileName, imgFileExt);
}
@@ -114,7 +115,8 @@ public class SignaturePlaceholderCache {
sigEmbl + "|" + sigProps.getProperty(sigEmblProp) + " - " + //$NON-NLS-1$ //$NON-NLS-2$
sigEHsh + "|" + sigProps.getProperty(sigEHshProp) + " - " + //$NON-NLS-1$ //$NON-NLS-2$
sigNote + "|" + sigProps.getProperty(sigNoteProp) + " - " + //$NON-NLS-1$ //$NON-NLS-2$
- sigPdfA + "|" + sigProps.getProperty(sigPdfAProp) + ")"); //$NON-NLS-1$ //$NON-NLS-2$
+ sigPdfA + "|" + sigProps.getProperty(sigPdfAProp) + " - " + //$NON-NLS-1$ //$NON-NLS-2$
+ profile + "|" + sigProps.getProperty(sigProfProp) + ")");
} catch (Exception e) {
log.warn("Can't load signature Placeholder", e); //$NON-NLS-1$
}