aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-web/src/main/java
diff options
context:
space:
mode:
authorAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2015-03-06 09:13:13 +0100
committerAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2015-03-06 09:13:13 +0100
commitfc8df1cc58e5a388d6c6f2aac3ce3e0003e580b6 (patch)
treef3dfe778ca578d2b1fe3c3bb495e9cd8c63d68b4 /pdf-as-web/src/main/java
parent32c092523228f370edb5a8246a09881e0245e1a6 (diff)
downloadpdf-as-4-fc8df1cc58e5a388d6c6f2aac3ce3e0003e580b6.tar.gz
pdf-as-4-fc8df1cc58e5a388d6c6f2aac3ce3e0003e580b6.tar.bz2
pdf-as-4-fc8df1cc58e5a388d6c6f2aac3ce3e0003e580b6.zip
added cookieless verification results
Diffstat (limited to 'pdf-as-web/src/main/java')
-rw-r--r--pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/VerifyResultHTMLEncoder.java9
-rw-r--r--pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/VerifyResultJSONEncoder.java6
2 files changed, 10 insertions, 5 deletions
diff --git a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/VerifyResultHTMLEncoder.java b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/VerifyResultHTMLEncoder.java
index c53b0c4d..590e93a1 100644
--- a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/VerifyResultHTMLEncoder.java
+++ b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/VerifyResultHTMLEncoder.java
@@ -65,11 +65,14 @@ public class VerifyResultHTMLEncoder implements VerifyResultEncoder {
sb.append("<td>-</td>");
}
if(result.isQualifiedCertificate()) {
- sb.append("<td><a href=\"signCert?SIGID=" + i + "\">here</a> (QC)</td>");
+ sb.append("<td><a href=\"signCert;jsessionid=" + request.getSession().getId() +
+ "?SIGID=" + i + "\">here</a> (QC)</td>");
} else {
- sb.append("<td><a href=\"signCert?SIGID=" + i + "\">here</a></td>");
+ sb.append("<td><a href=\"signCert;jsessionid=" + request.getSession().getId() +
+ "?SIGID=" + i + "\">here</a></td>");
}
- sb.append("<td><a href=\"signData?SIGID=" + i + "\">here</a></td>");
+ sb.append("<td><a href=\"signData;jsessionid=" + request.getSession().getId() +
+ "?SIGID=" + i + "\">here</a></td>");
} else {
sb.append("<td>NO</td>");
diff --git a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/VerifyResultJSONEncoder.java b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/VerifyResultJSONEncoder.java
index 18da6b3e..43ad3581 100644
--- a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/VerifyResultJSONEncoder.java
+++ b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/VerifyResultJSONEncoder.java
@@ -58,8 +58,10 @@ public class VerifyResultJSONEncoder implements VerifyResultEncoder {
+ "\"");
}
sb.append(", ");
- sb.append("\"certificate\":\"signCert?SIGID=" + i + "\", ");
- sb.append("\"signedData\":\"signData?SIGID=" + i + "\"");
+ sb.append("\"certificate\":\"signCert;jsessionid=" + request.getSession().getId() +
+ "?SIGID=" + i + "\", ");
+ sb.append("\"signedData\":\"signData;jsessionid=" + request.getSession().getId() +
+ "?SIGID=" + i + "\"");
} else {
sb.append("\"processed\":\"" + result.isVerificationDone()
+ "\"");