PDF-AS Amtssignaturen
++Die Daten wurden erfolgreich übernommen. +
+ +From f4c61a145d4f9a537c87fe67db36de8c28f2e352 Mon Sep 17 00:00:00 2001
From: tknall
" + caption + ": | "); - writer.println(""); + writer.println(" | " + caption + ": | "); + writer.println("");
value = value.replaceAll("\\s", " ");
value = value.replaceAll("\\\"", "\\\"");
diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/web/servlets/VerifyServlet.java b/src/main/java/at/knowcenter/wag/egov/egiz/web/servlets/VerifyServlet.java
index eb07828..001b8b3 100644
--- a/src/main/java/at/knowcenter/wag/egov/egiz/web/servlets/VerifyServlet.java
+++ b/src/main/java/at/knowcenter/wag/egov/egiz/web/servlets/VerifyServlet.java
@@ -170,13 +170,13 @@ public class VerifyServlet extends HttpServlet
{
request.setAttribute("error", "Fehler beim Upload der Daten");
request.setAttribute("cause", "Beim Upload der Daten ist ein Fehler aufgetreten.");
- dispatch(request, response, "/jsp/error.jsp");
+ dispatch(request, response, "/jsp/error_verify.jsp");
}
catch (PresentableException e)
{
e.printStackTrace();
SignServlet.prepareDispatchToErrorPage(e, request);
- dispatch(request, response, "/jsp/error.jsp");
+ dispatch(request, response, "/jsp/error_verify.jsp");
}
}
diff --git a/src/main/webapp/META-INF/context.xml b/src/main/webapp/META-INF/context.xml
new file mode 100644
index 0000000..0b4f656
--- /dev/null
+++ b/src/main/webapp/META-INF/context.xml
@@ -0,0 +1,9 @@
+
+ Erkennung laufender BKU-Software + + + + + diff --git a/src/main/webapp/css/pdfas-styles.css b/src/main/webapp/css/pdfas-styles.css new file mode 100644 index 0000000..7803827 --- /dev/null +++ b/src/main/webapp/css/pdfas-styles.css @@ -0,0 +1,111 @@ +table.pdfassignature { + background-color: #F5F5F0; + font-size: 1em; + border: 1px solid black; + border-collapse: collapse; + table-layout: auto; + width: 650px; +} + +table.pdfassignature td.pdfaslabel { + font-family: Helvetica, Times; + text-align: center; + border: 1px solid black; + border-collapse: collapse; + min-width: 100px; + /* word-spacing: nowrap; */ +} + +table#pdfasupperformtable { + margin-top: 10px; +} + +table.pdfassignature td.pdfasvalue { + font-family: monospace; + border: 1px solid black; + border-collapse: collapse; + text-align: left; + font-size: 1.2em; +} + +div.pdfasnobreak { + float: left; + white-space: nowrap; +} + +table.pdfassignature td.pdfasvalue input { + font-family: monospace; +} + +div.pdfasverticalspace { + padding: 20px 0px 0px 0px; +} + +div.pdfassmallverticalspace { + padding: 10px 0px 0px 0px; +} + +div.pdfasnote { + padding: 10px 0px 0px 0px; + margin: 0px 0px 0px 0px; +} + +pre.pdfasnt { + font: 1em, courier new, courier, monospace; + border: 1px solid black; + text-align: left; + padding: 5px; + height: 40ex; + width: 640px; + overflow: auto; +} + +a.pdfasbacklink { + padding: 0px 0px 0px 0px; + margin: 20px 0px 10px 0px; +} + +.pdfaspreviewfield { + font: 1em, courier new, courier, monospace; + width: 94%; + margin: 0px 0px 0px 0px; +} + +table.pdfaslisttable { + border-style: none; + border-collapse: collapse; + text-align: left; + font-size: 1em; + width: 100%; +} + +.pdfaslisttablecontainer { + border: 1px solid black; + padding: 5px 5px 5px 5px; + margin: 0px 0px 15px 0px; + float: left; + width: 98%; +} + +table.pdfaslisttable td.pdfasvalue { + width: 90%; +} + +table.pdfaslisttable td.pdfascaption { + width: 10%; + vertical-align: top; + padding-right: 10px; + white-space: nowrap; +} + +.pdfasok { + background-color: #bdff7b; +} + +.pdfasnok { + background-color: #f66; +} + +fieldset.pdfasresultfieldset { + padding: 5px 5px 5px 5px; +} diff --git a/src/main/webapp/images/signatur-logo_de-100.png b/src/main/webapp/images/signatur-logo_de-100.png new file mode 100644 index 0000000..d7ff84d Binary files /dev/null and b/src/main/webapp/images/signatur-logo_de-100.png differ diff --git a/src/main/webapp/images/signatur-logo_de.png b/src/main/webapp/images/signatur-logo_de.png new file mode 100644 index 0000000..4307f6a Binary files /dev/null and b/src/main/webapp/images/signatur-logo_de.png differ diff --git a/src/main/webapp/jsp/SIGNATURBLOCK_DE.jsp b/src/main/webapp/jsp/SIGNATURBLOCK_DE.jsp new file mode 100644 index 0000000..3264093 --- /dev/null +++ b/src/main/webapp/jsp/SIGNATURBLOCK_DE.jsp @@ -0,0 +1,61 @@ +<%@ page contentType="text/html; charset=UTF-8" language="java" errorPage=""%> + +<%@ page import="org.apache.commons.lang.time.DateFormatUtils" %> +<%@ page import="java.util.Date" %> + +
+
+
+
\ No newline at end of file
diff --git a/src/main/webapp/jsp/download.jsp b/src/main/webapp/jsp/download.jsp
new file mode 100644
index 0000000..62a5417
--- /dev/null
+++ b/src/main/webapp/jsp/download.jsp
@@ -0,0 +1,40 @@
+<%@ page contentType="text/html; charset=UTF-8"%>
+
+<%@ page import="at.knowcenter.wag.egov.egiz.web.SessionAttributes" %>
+
+<%
+ String downloadURL = (String) session.getAttribute(SessionAttributes.DOWNLOAD_URL_FOR_SIGNED_PDF_DOCUMENT);
+%>
+
+
+
+ PDF-AS Amtssignaturen+
+
+<%
+ String btlurl = (String)request.getAttribute("btlurl");
+%>
+zurück zur Liste
+Datenänderung
+
++Die Daten wurden erfolgreich übernommen. + + +PDF-Signaturen+Dokument Signatur erstellen+Der Signatur-Vorgang ist abgeschlossen. Das signierte Dokument kann nun heruntergeladen werden.
+
+
+
+ zurück
+
+
+
diff --git a/src/main/webapp/jsp/error.jsp b/src/main/webapp/jsp/error.jsp
new file mode 100644
index 0000000..48a7f50
--- /dev/null
+++ b/src/main/webapp/jsp/error.jsp
@@ -0,0 +1,48 @@
+<%@ page isErrorPage="true" %>
+<%@ page import="at.knowcenter.wag.egov.egiz.web.LocalRequestHelper" %>
+<%@ page import="at.knowcenter.wag.egov.egiz.web.servlets.SignServlet" %>
+<%@ page import="at.knowcenter.wag.egov.egiz.exceptions.*" %>
+<%@ page import="java.io.*" %>
+
+
+
+
+
+ Hinweis: Der Download ist nur einmalig möglich. Das Dokument wird nicht am Server gespeichert. PDF-Signaturen+Ein Fehler ist aufgetreten+<%= error %>
+ Ursache: <%= cause %>
+
+ zurück
+
+
+
+
diff --git a/src/main/webapp/jsp/error_verify.jsp b/src/main/webapp/jsp/error_verify.jsp
new file mode 100644
index 0000000..3e8421d
--- /dev/null
+++ b/src/main/webapp/jsp/error_verify.jsp
@@ -0,0 +1,48 @@
+<%@ page isErrorPage="true" %>
+<%@ page import="at.knowcenter.wag.egov.egiz.web.LocalRequestHelper" %>
+<%@ page import="at.knowcenter.wag.egov.egiz.web.servlets.SignServlet" %>
+<%@ page import="at.knowcenter.wag.egov.egiz.exceptions.*" %>
+<%@ page import="java.io.*" %>
+
+
+
+
+
+ PDF-Signaturen+Ein Fehler ist aufgetreten+<%= error %>
+ Ursache: <%= cause %>
+
+ zurück
+
+
+
+
diff --git a/src/main/webapp/jsp/null_request_page.jsp b/src/main/webapp/jsp/null_request_page.jsp
new file mode 100644
index 0000000..89df7cf
--- /dev/null
+++ b/src/main/webapp/jsp/null_request_page.jsp
@@ -0,0 +1,46 @@
+<%@ page contentType="text/html; charset=UTF-8"%>
+<%
+ String local_request_url = (String)request.getAttribute("local_request_url");
+ String data_url = (String)request.getAttribute("data_url");
+%>
+
+
+
+
+ PDF-Signaturen+Dokument Signatur erstellen+Die Verbindung zu Ihrer Bürgerkartenumgebung wird hergestellt...
+
+
+
+ zurück
+
+
+
+
diff --git a/src/main/webapp/jsp/results.jsp b/src/main/webapp/jsp/results.jsp
new file mode 100644
index 0000000..990e33e
--- /dev/null
+++ b/src/main/webapp/jsp/results.jsp
@@ -0,0 +1,78 @@
+<%@ page contentType="text/html; charset=UTF-8" %>
+<%@ page import="java.util.List" %>
+<%@ page import="java.util.Iterator" %>
+<%@ page import="at.knowcenter.wag.egov.egiz.sig.SignatureResponse" %>
+
+<%
+ List results = (List) request.getAttribute("results");
+ Object bb = request.getAttribute("backbutton");
+ String btlurl = (String)request.getAttribute("btlurl");
+ boolean backbutton = true;
+ if (bb != null && bb.equals("false")) {
+ backbutton = false;
+ }
+%>
+
+
+
+ PDF-Signaturen+Prüfergebnis+ <% + Iterator resit = results.iterator(); + while (resit.hasNext()) { + SignatureResponse result = (SignatureResponse) resit.next(); + %> + + + + + + + + + + + <% + if (resit.hasNext()) { + %> ++ <% + } + } + %> + + <% if (backbutton) { %> + zurück + <% } %> + <% if (btlurl != null) { %> + zurück zur Liste + <% } %> + + diff --git a/src/main/webapp/jsp/signpreview.jsp b/src/main/webapp/jsp/signpreview.jsp new file mode 100644 index 0000000..a1e6349 --- /dev/null +++ b/src/main/webapp/jsp/signpreview.jsp @@ -0,0 +1,68 @@ +<%@ page import="at.knowcenter.wag.egov.egiz.web.FormFields" %> +<%@ page import="at.knowcenter.wag.egov.egiz.web.SessionAttributes" %> +<%@ page import="at.knowcenter.wag.egov.egiz.sig.SignatureData" %> +<%@ page import="at.gv.egiz.pdfas.web.SignSessionInformation" %> +<%@ page import="at.gv.egiz.pdfas.impl.input.TextDataSourceImpl"%> +<%@page import="org.apache.commons.lang.StringEscapeUtils"%> + +<% + SignSessionInformation si = (SignSessionInformation) session.getAttribute(SessionAttributes.ATTRIBUTE_SESSION_INFORMATION); + + String submit_url = (String)request.getAttribute("submit_url"); + + String signature_data_url = (String)request.getAttribute("signature_data_url"); + + String document_text = null; + if (si.mode.equals(FormFields.VALUE_MODE_TEXTUAL)) { + SignatureData data = si.si.getSignatureData(); + TextDataSourceImpl tds = (TextDataSourceImpl)data.getDataSource(); + document_text = StringEscapeUtils.escapeHtml(tds.getText()); + } +%> + + + + + + PDF-Signaturen+Vorschau: Dokument Signieren+ <% + if (si.mode.equals(FormFields.VALUE_MODE_TEXTUAL)) { + %> + + <% + } else { + %> + + + +
+
+
+
+
+
+ <%
+ }
+ %>
+
+ zurück
+
+
+
diff --git a/src/main/webapp/jsp/signupload.jsp b/src/main/webapp/jsp/signupload.jsp
new file mode 100644
index 0000000..ceabf9a
--- /dev/null
+++ b/src/main/webapp/jsp/signupload.jsp
@@ -0,0 +1,68 @@
+<%@ page import="at.knowcenter.wag.egov.egiz.web.FormFields" %>
+<%@ page import="at.knowcenter.wag.egov.egiz.web.SessionAttributes" %>
+
+
+
+
+ PDF-Signaturen+Dokument Signatur erstellen+Bitte wählen Sie die zu signierende PDF-Datei. Diese wird mit Ihrer Bürgerkarte signiert.
+
+
+
+
\ No newline at end of file
diff --git a/src/main/webapp/jsp/verifylist.jsp b/src/main/webapp/jsp/verifylist.jsp
new file mode 100644
index 0000000..22a2a4e
--- /dev/null
+++ b/src/main/webapp/jsp/verifylist.jsp
@@ -0,0 +1,73 @@
+<%@ page contentType="text/html; charset=UTF-8" %>
+<%@ page import="java.util.List" %>
+<%@ page errorPage="error_verify.jsp" %>
+<%@ page import="at.knowcenter.wag.egov.egiz.pdf.SignatureHolder" %>
+<%@ page import="at.knowcenter.wag.egov.egiz.web.FormFields" %>
+<%@ page import="at.knowcenter.wag.egov.egiz.web.SessionAttributes" %>
+<%@ page import="at.knowcenter.wag.egov.egiz.web.servlets.VerifyPreviewServlet" %>
+<%@ page import="at.gv.egiz.pdfas.web.VerifySessionInformation" %>
+<%@ page import="at.gv.egiz.pdfas.web.helper.SessionHelper"%>
+<%
+
+ VerifySessionInformation si = (VerifySessionInformation) SessionHelper.getSession(request);
+
+ List signature_holders = si.signature_holders;
+
+%>
+
+
+
+
+ PDF-Signaturen+ <% + if (signature_holders.size() > 1) { + %> +Dokument Signaturen prüfen+ <% } else { %> +Dokument Signatur prüfen+ <% + } + %> + <% + for (int i = 0; i < signature_holders.size(); i++) { + SignatureHolder holder = (SignatureHolder) signature_holders.get(i); + %> + +
+ <%= VerifyPreviewServlet.renderRequiredKeysText(holder.getSignatureObject()) %>
+
+
+
+ <%
+ }
+ %>
+
+
+
+
+ zurück
+
+
diff --git a/src/main/webapp/jsp/verifypreview.jsp b/src/main/webapp/jsp/verifypreview.jsp
new file mode 100644
index 0000000..975b5ce
--- /dev/null
+++ b/src/main/webapp/jsp/verifypreview.jsp
@@ -0,0 +1,60 @@
+<%@ page contentType="text/html; charset=UTF-8" %>
+<%@ page errorPage="error_verify.jsp" %>
+<%@ page import="java.util.List" %>
+<%@ page import="at.knowcenter.wag.egov.egiz.pdf.SignatureHolder" %>
+<%@ page import="at.knowcenter.wag.egov.egiz.pdf.TextualSignatureHolder" %>
+<%@ page import="at.knowcenter.wag.egov.egiz.web.FormFields" %>
+<%@ page import="at.knowcenter.wag.egov.egiz.web.SessionAttributes" %>
+<%@ page import="at.knowcenter.wag.egov.egiz.web.servlets.VerifyPreviewServlet" %>
+<%@ page import="at.gv.egiz.pdfas.web.VerifySessionInformation" %>
+<%@ page import="at.gv.egiz.pdfas.web.helper.SessionHelper"%>
+<%
+ String btlurl = (String)request.getAttribute("btlurl");
+
+ VerifySessionInformation si = (VerifySessionInformation) SessionHelper.getSession(request);
+
+ List signature_holders = si.signature_holders;
+ Integer ver_wh = (Integer) request.getAttribute(FormFields.FIELD_VERIFY_WHICH);
+ int verify_which = ver_wh.intValue();
+ SignatureHolder signature_holder = (SignatureHolder) signature_holders.get(verify_which);
+%>
+
+
+
+ PDF-Signaturen+Vorschau: Dokument prüfen+ + +zurück +zurück zur Liste + + + diff --git a/src/main/webapp/jsp/verifyupload.jsp b/src/main/webapp/jsp/verifyupload.jsp new file mode 100644 index 0000000..fcbbc8d --- /dev/null +++ b/src/main/webapp/jsp/verifyupload.jsp @@ -0,0 +1,38 @@ +<%@ page import="at.knowcenter.wag.egov.egiz.web.FormFields" %> +<%@ page contentType="text/html; charset=UTF-8" %> + + + +PDF-Signaturen+Dokument Signatur prüfen+Hier bitte den vollständigen Dokumenttext samt Signaturblock eingeben.
+
+
+zurück
+
+
\ No newline at end of file
diff --git a/src/main/webapp/parentpage/standalone.jsp b/src/main/webapp/parentpage/standalone.jsp
new file mode 100644
index 0000000..716ab00
--- /dev/null
+++ b/src/main/webapp/parentpage/standalone.jsp
@@ -0,0 +1,17 @@
+
+<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="utf-8"%>
+
+
+<%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator" prefix="decorator"%>
+<%@ page import="at.knowcenter.wag.egov.egiz.web.LocalRequestHelper" %>
+
+ |