aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorknowcenter <knowcenter@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2007-06-01 08:35:31 +0000
committerknowcenter <knowcenter@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2007-06-01 08:35:31 +0000
commite66f7c7b73657a983ba9f0efed013a304ec94ed2 (patch)
tree6de6dc510be40939050ea55fe3b38e41c64ba6ae /src/main
parent435da4eb8e54a3145693f39cf59d9acd8fa9763f (diff)
downloadpdf-as-3-e66f7c7b73657a983ba9f0efed013a304ec94ed2.tar.gz
pdf-as-3-e66f7c7b73657a983ba9f0efed013a304ec94ed2.tar.bz2
pdf-as-3-e66f7c7b73657a983ba9f0efed013a304ec94ed2.zip
detached moa
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@119 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/at/knowcenter/wag/egov/egiz/web/servlets/VerifyPreviewServlet.java13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/web/servlets/VerifyPreviewServlet.java b/src/main/java/at/knowcenter/wag/egov/egiz/web/servlets/VerifyPreviewServlet.java
index 98f582e..3a79939 100644
--- a/src/main/java/at/knowcenter/wag/egov/egiz/web/servlets/VerifyPreviewServlet.java
+++ b/src/main/java/at/knowcenter/wag/egov/egiz/web/servlets/VerifyPreviewServlet.java
@@ -20,6 +20,7 @@ package at.knowcenter.wag.egov.egiz.web.servlets;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.StringWriter;
+import java.net.URL;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
@@ -556,7 +557,11 @@ public class VerifyPreviewServlet extends HttpServlet
return;
}
- List results = PdfAS.verifySignatureHolders(holders_to_verify, si.connector);
+ String host = request.getServerName();
+ URL loc_ref_URL = new URL(request.getScheme(), host, request.getServerPort(), request.getContextPath() + "/RetrieveSignatureData");
+ String loc_ref_url = response.encodeURL(loc_ref_URL.toString());
+
+ List results = PdfAS.verifySignatureHoldersWeb(holders_to_verify, si.connector, loc_ref_url);
boolean backbutton = true;
if (verify_which >= 0)
{
@@ -688,7 +693,11 @@ public class VerifyPreviewServlet extends HttpServlet
return;
}
- List results = PdfAS.verifySignatureHolders(holders_to_verify, si.connector);
+ String host = request.getServerName();
+ URL loc_ref_URL = new URL(request.getScheme(), host, request.getServerPort(), request.getContextPath() + "/RetrieveSignatureData");
+ String loc_ref_url = response.encodeURL(loc_ref_URL.toString());
+
+ List results = PdfAS.verifySignatureHoldersWeb(holders_to_verify, si.connector, loc_ref_url);
dispatchToResults(results, request, response, true);
}
catch (FileUploadException e)