From fc8df1cc58e5a388d6c6f2aac3ce3e0003e580b6 Mon Sep 17 00:00:00 2001 From: Andreas Fitzek Date: Fri, 6 Mar 2015 09:13:13 +0100 Subject: added cookieless verification results --- .../at/gv/egiz/pdfas/web/helper/VerifyResultHTMLEncoder.java | 9 ++++++--- .../at/gv/egiz/pdfas/web/helper/VerifyResultJSONEncoder.java | 6 ++++-- 2 files changed, 10 insertions(+), 5 deletions(-) (limited to 'pdf-as-web/src/main/java') 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("-"); } if(result.isQualifiedCertificate()) { - sb.append("here (QC)"); + sb.append("here (QC)"); } else { - sb.append("here"); + sb.append("here"); } - sb.append("here"); + sb.append("here"); } else { sb.append("NO"); 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() + "\""); -- cgit v1.2.3