diff options
author | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2014-11-10 14:21:05 +0100 |
---|---|---|
committer | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2014-11-10 14:21:05 +0100 |
commit | d7b66fb00c4e75932da62fd2a50bfae479f4aa06 (patch) | |
tree | f33009db83ccc4357e81572e92c2eee88fd13801 /pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets | |
parent | 602849f69efbca27672a79da10e52c999ee43c5c (diff) | |
download | pdf-as-4-d7b66fb00c4e75932da62fd2a50bfae479f4aa06.tar.gz pdf-as-4-d7b66fb00c4e75932da62fd2a50bfae479f4aa06.tar.bz2 pdf-as-4-d7b66fb00c4e75932da62fd2a50bfae479f4aa06.zip |
Use PdfAsParameterExtractor for orig digest
Diffstat (limited to 'pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets')
-rw-r--r-- | pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/PDFData.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/PDFData.java b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/PDFData.java index cef19a76..b0c434af 100644 --- a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/PDFData.java +++ b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/PDFData.java @@ -36,6 +36,7 @@ import org.slf4j.LoggerFactory; import at.gv.egiz.pdfas.api.ws.PDFASVerificationResponse; import at.gv.egiz.pdfas.web.helper.PdfAsHelper; +import at.gv.egiz.pdfas.web.helper.PdfAsParameterExtractor; /** * Servlet implementation class PDFData @@ -47,7 +48,7 @@ public class PDFData extends HttpServlet { private static final Logger logger = LoggerFactory .getLogger(PDFData.class); - private static String ORIGINAL_DIGEST = "origdigest"; + /** * @see HttpServlet#HttpServlet() @@ -78,7 +79,7 @@ public class PDFData extends HttpServlet { HttpServletResponse response) throws ServletException, IOException { byte[] signedData = PdfAsHelper.getSignedPdf(request, response); - String plainPDFDigest = request.getParameter(ORIGINAL_DIGEST); + String plainPDFDigest = PdfAsParameterExtractor.getOrigDigest(request); if (signedData != null) { if(plainPDFDigest != null) { |