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:37:29 +0200
committerAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-06-05 15:37:29 +0200
commit260f5824b5713c8c56faca4e429337f09bb007c7 (patch)
tree923aedb31e24ad836b5752773d0f70536d24de46 /pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper
parentda4c666bc905eb5e9378307c801da18795f233c9 (diff)
downloadpdf-as-4-260f5824b5713c8c56faca4e429337f09bb007c7.tar.gz
pdf-as-4-260f5824b5713c8c56faca4e429337f09bb007c7.tar.bz2
pdf-as-4-260f5824b5713c8c56faca4e429337f09bb007c7.zip
Fixed SOAP Profile parameter
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.java5
1 files changed, 2 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 f64ffac0..98bbd660 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
@@ -388,7 +388,7 @@ public class PdfAsHelper {
public static void startSignature(HttpServletRequest request,
HttpServletResponse response, ServletContext context, byte[] pdfData,
- String connector, String position, String transactionId)
+ String connector, String position, String transactionId, String profile)
throws Exception {
// TODO: Protect session so that only one PDF can be signed during one
@@ -434,8 +434,7 @@ public class PdfAsHelper {
session.setAttribute(PDF_SL_INTERACTIVE, connector);
// set Signature Profile (null use default ...)
- signParameter.setSignatureProfileId(PdfAsParameterExtractor
- .getSigType(request));
+ signParameter.setSignatureProfileId(profile);
ByteArrayDataSink dataSink = new ByteArrayDataSink();
signParameter.setOutput(dataSink);