aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper
diff options
context:
space:
mode:
authorAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-06-05 15:02:09 +0200
committerAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-06-05 15:02:09 +0200
commit370af0e71a27a9e0a3970d1eabe83dabc4d1a1a9 (patch)
tree3a8f1a8669079f9650437b4aa3bd1c58eaa87220 /pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper
parent6ea2c1db26260c1f36e01c58fc6f8ef0220e577e (diff)
downloadpdf-as-4-370af0e71a27a9e0a3970d1eabe83dabc4d1a1a9.tar.gz
pdf-as-4-370af0e71a27a9e0a3970d1eabe83dabc4d1a1a9.tar.bz2
pdf-as-4-370af0e71a27a9e0a3970d1eabe83dabc4d1a1a9.zip
fixed Position String for SOAP service
Diffstat (limited to 'pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper')
-rw-r--r--pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/PdfAsHelper.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/PdfAsHelper.java b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/PdfAsHelper.java
index 421edff4..f64ffac0 100644
--- a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/PdfAsHelper.java
+++ b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/PdfAsHelper.java
@@ -139,7 +139,7 @@ public class PdfAsHelper {
}
}
- private static String buildPosString(HttpServletRequest request,
+ public static String buildPosString(HttpServletRequest request,
HttpServletResponse response) throws PdfAsWebException {
String posP = PdfAsParameterExtractor.getSigPosP(request);
String posX = PdfAsParameterExtractor.getSigPosX(request);
@@ -388,7 +388,7 @@ public class PdfAsHelper {
public static void startSignature(HttpServletRequest request,
HttpServletResponse response, ServletContext context, byte[] pdfData,
- String connector, String transactionId)
+ String connector, String position, String transactionId)
throws Exception {
// TODO: Protect session so that only one PDF can be signed during one
@@ -441,7 +441,7 @@ public class PdfAsHelper {
signParameter.setOutput(dataSink);
// set Signature Position
- signParameter.setSignaturePosition(buildPosString(request, response));
+ signParameter.setSignaturePosition(position);
StatusRequest statusRequest = pdfAs.startSign(signParameter);
session.setAttribute(PDF_STATUS, statusRequest);