From 95f6c6fe321d33dc8fa9e18c7d96bd9b21ef10cc Mon Sep 17 00:00:00 2001 From: tknall Date: Wed, 14 Jan 2009 11:39:31 +0000 Subject: Switching to itext-2.1.5-rev3628. itext library: minor adjustments for pdf-as Adding new error code (103) for invalid pdfa/1b font configuration. Minor updates for PDF/A support. Support for local MOCCA CCS added. Multi language for web application. Encoding issue for web application fixed by implementing an EncodingFilter. Dynamic sign upload form implemented. Order of input fields for dynamic upload form changed. MOCCA logo added to sign upload form. git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@319 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- src/main/webapp/jsp/SIGNATURBLOCK.jsp | 110 +++++++++++++++++++ src/main/webapp/jsp/SIGNATURBLOCK_DE.jsp | 61 ----------- src/main/webapp/jsp/dataok.jsp | 15 +-- src/main/webapp/jsp/download.jsp | 16 +-- src/main/webapp/jsp/error.jsp | 23 ++-- src/main/webapp/jsp/error_verify.jsp | 12 ++- src/main/webapp/jsp/language.jsp | 9 ++ src/main/webapp/jsp/null_request_page.jsp | 52 ++++++--- src/main/webapp/jsp/please_wait.jsp | 16 +++ src/main/webapp/jsp/results.jsp | 28 ++--- src/main/webapp/jsp/signpreview.jsp | 26 +++-- src/main/webapp/jsp/signupload.jsp | 174 +++++++++++++++++++++++------- src/main/webapp/jsp/verifylist.jsp | 17 +-- src/main/webapp/jsp/verifypreview.jsp | 17 +-- src/main/webapp/jsp/verifyupload.jsp | 23 ++-- 15 files changed, 417 insertions(+), 182 deletions(-) create mode 100644 src/main/webapp/jsp/SIGNATURBLOCK.jsp delete mode 100644 src/main/webapp/jsp/SIGNATURBLOCK_DE.jsp create mode 100644 src/main/webapp/jsp/language.jsp create mode 100644 src/main/webapp/jsp/please_wait.jsp (limited to 'src/main/webapp/jsp') diff --git a/src/main/webapp/jsp/SIGNATURBLOCK.jsp b/src/main/webapp/jsp/SIGNATURBLOCK.jsp new file mode 100644 index 0000000..dc21f9a --- /dev/null +++ b/src/main/webapp/jsp/SIGNATURBLOCK.jsp @@ -0,0 +1,110 @@ +<%@ page contentType="text/html; charset=UTF-8" language="java" errorPage=""%> + +<%@ page import="org.apache.commons.lang.time.DateFormatUtils" %> +<%@ page import="java.util.Date" %> +<%@ page import="at.gv.egiz.pdfas.api.commons.Constants" %> +<%@ page import="at.knowcenter.wag.egov.egiz.web.servlets.UpdateFormServlet"%> +<%@ page import="at.knowcenter.wag.egov.egiz.web.FormFields" %> + +<%@ include file="language.jsp" %> + + <% + String mode = (String) session.getAttribute(UpdateFormServlet.UPLOADFORM_SIGNATURE_MODE_KEY); + String device = (String) session.getAttribute(UpdateFormServlet.UPLOADFORM_SIGNATURE_DEVICE_KEY); + String type = (String) session.getAttribute(UpdateFormServlet.UPLOADFORM_SIGNATURE_TYPE_KEY); + + String sbValue; + String sbLabel; + String sbMeta; + String sbName; + String sbDate; + String sbIssuer; + String sbNumber; + String sbKZ; + String sbID; + String sbMetaValue; + if ("SIGNATURBLOCK_DE".equals(type)) { + sbValue = "Signaturwert"; + sbLabel = "signatur-logo_de-100.png"; + sbMetaValue = "Informationen zur Prüfung der elektronischen Signatur und des Ausdrucks finden Sie unter: "; + sbName = "Unterzeichner"; + sbDate = "Datum/Zeit-UTC"; + sbIssuer = "Aussteller-Zertifikat"; + sbNumber = "Serien-Nr."; + sbKZ = "Methode"; + sbID = "Parameter"; + sbMeta = "Prüfinformation"; + } else { + sbValue = "Signature Value"; + sbLabel = "signatur-logo_en-100.png"; + sbMetaValue = "Information about the verification of the electronic signature and of the printout can be found at: "; + sbName = "Signatory"; + sbDate = "Date/Time-UTC"; + sbIssuer = "Issuer-Certificate"; + sbNumber = "Serial-No."; + sbKZ = "Method"; + sbID = "Parameter"; + sbMeta = "Verification"; + } + + %> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <% } // end if %> + + + + + +
<%= sbValue %> +
Aqs3vMeF81wm/UJjIcLOzUs9
+
dxTBzhi2RC8avQyMAmc3v
+
WEj9HT1DI3iish4smRr
+
Signatur-Logo<%= sbName %>" readonly="readonly" disabled="disabled" size="40" maxlength="255"/>
<%= sbDate %><%= DateFormatUtils.formatUTC(new Date(), "yyyy-MM-dd'T'HH:mm:ss'Z'", request.getLocale()) %>
<%= sbIssuer %> +
CN=,
+
O=,
+
C=AT
+
<%= sbNumber %>123456
<%= sbKZ %> +
urn:pdfsigfilter:
+
bka.gv.at:
+
<%= FormFields.VALUE_MODE_TEXTUAL.equals(mode) ? "text" : "binaer" %>:v1.1.0
+
<%= sbID %> + <% if (Constants.SIGNATURE_DEVICE_MOC.equals(device)) { %> +
etsi-moc-1.0@12345678
+ <% } else { %> +
etsi-bka-1.0@1234567890-123456789@
+
12345-1234-
+
0-
+
12345-
+
12345
<%= sbMeta %><%= sbMetaValue %>
+ \ No newline at end of file diff --git a/src/main/webapp/jsp/SIGNATURBLOCK_DE.jsp b/src/main/webapp/jsp/SIGNATURBLOCK_DE.jsp deleted file mode 100644 index 3b48294..0000000 --- a/src/main/webapp/jsp/SIGNATURBLOCK_DE.jsp +++ /dev/null @@ -1,61 +0,0 @@ -<%@ page contentType="text/html; charset=UTF-8" language="java" errorPage=""%> - -<%@ page import="org.apache.commons.lang.time.DateFormatUtils" %> -<%@ page import="java.util.Date" %> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Signaturwert -
Aqs3vMeF81wm/UJjIcLOzUs9
-
dxTBzhi2RC8avQyMAmc3v
-
WEj9HT1DI3iish4smRr
-
Signatur-LogoUnterzeichner
Datum/Zeit-UTC<%= DateFormatUtils.formatUTC(new Date(), "yyyy-MM-dd'T'HH:mm:ss'Z'", request.getLocale()) %>
Aussteller-Zertifikat -
CN=Ausstellername,
-
O=Ausstellerorganisation,
-
C=AT
-
Serien-Nr.123456
Methode -
urn:pdfsigfilter:
-
bka.gv.at:
-
text:v1.1.0
-
Parameter -
etsi-bka-1.0@1234567890-123456789@
-
12345-1234-
-
0-
-
12345-
-
12345
Prüfinformation - Informationen zur Prüfung der elektronischen Signatur und des Ausdrucks finden Sie unter: -
diff --git a/src/main/webapp/jsp/dataok.jsp b/src/main/webapp/jsp/dataok.jsp index c77fb46..ae209ab 100644 --- a/src/main/webapp/jsp/dataok.jsp +++ b/src/main/webapp/jsp/dataok.jsp @@ -1,24 +1,25 @@ + +<%@ include file="language.jsp" %> + -PDF-AS Amtssignaturen +<fmt:message key="common.title"/>
-

PDF-AS Amtssignaturen

-
-
Datenänderung
+

+

-Die Daten wurden erfolgreich übernommen. +

-
<% String btlurl = (String)request.getAttribute("btlurl"); %> -zurück zur Liste +
\ No newline at end of file diff --git a/src/main/webapp/jsp/download.jsp b/src/main/webapp/jsp/download.jsp index 76180cc..95109e3 100644 --- a/src/main/webapp/jsp/download.jsp +++ b/src/main/webapp/jsp/download.jsp @@ -1,5 +1,7 @@ <%@ page contentType="text/html; charset=UTF-8"%> +<%@ include file="language.jsp" %> + <%@ page import="at.knowcenter.wag.egov.egiz.web.SessionAttributes" %> <%@ page import="at.knowcenter.wag.egov.egiz.web.LocalRequestHelper" %> @@ -9,7 +11,7 @@ - PDF-Signaturen Lokale Verbindung + <fmt:message key="download.title"/> -

PDF-Signaturen

-

Dokument Signatur erstellen

-
Die Verbindung zu Ihrer Bürgerkartenumgebung wird hergestellt...
+

+

+
+ <% if (isOnlineMOCCA) { %> +
+ + + + + <% if (locale != null) { %> + + <% } // end if %> +
+
+ + <% } else { %>
-
- - - -
+
+ + + " /> +
+ <% } // end if %>
- zurück + + <% + String device = (String) session.getAttribute(UpdateFormServlet.UPLOADFORM_SIGNATURE_DEVICE_KEY); + if (device == null) { + device = Constants.SIGNATURE_DEVICE_MOC; + session.setAttribute(UpdateFormServlet.UPLOADFORM_SIGNATURE_DEVICE_KEY, device); + } + String mode = (String) session.getAttribute(UpdateFormServlet.UPLOADFORM_SIGNATURE_MODE_KEY); + if (forceTextualForMocca && Constants.SIGNATURE_DEVICE_MOC.equals(device)) { + mode = FormFields.VALUE_MODE_TEXTUAL; + session.setAttribute(UpdateFormServlet.UPLOADFORM_SIGNATURE_MODE_KEY, mode); + } + if (mode == null) { + mode = FormFields.VALUE_MODE_TEXTUAL; + session.setAttribute(UpdateFormServlet.UPLOADFORM_SIGNATURE_MODE_KEY, mode); + } + String type = (String) session.getAttribute(UpdateFormServlet.UPLOADFORM_SIGNATURE_TYPE_KEY); + if (type == null) { + Locale locale = (Locale) session.getAttribute(LocaleParamFilter.LOCALE_SESSION_KEY); + if (locale == null) { + locale = request.getLocale(); + } + type = Locale.GERMAN.getLanguage().equals(locale.getLanguage()) ? "SIGNATURBLOCK_DE" : "SIGNATURBLOCK_EN"; + session.setAttribute(UpdateFormServlet.UPLOADFORM_SIGNATURE_TYPE_KEY, type); + } + + %> -

PDF-Signaturen

-

Dokument Signatur erstellen

-
Bitte wählen Sie die zu signierende PDF-Datei. Diese wird mit Ihrer Bürgerkarte signiert.
-
+ <% + if (testMode) { + %> + + <% } else { %> + + <% } // end if %> + +

+
+ + + + + +
- - - - - + - + - + + + + +
- + +
- + <% if (forceTextualForMocca && Constants.SIGNATURE_DEVICE_MOC.equals(device)) {%> + + + <% } else { %> + + <% } %>
- + +
-
Bitte beachten Sie: Im textuellen Modus signierte Dokumente können nur dann geprüft werden, wenn das Zertifikat in einem Verzeichnisdienst verfügbar ist.
+
:
- + -
Das Erscheinungsbild der Signaturmarke kann abhängig vom Signatur Typ, vom Signatur Modus, von der verwendeten Bürgerkarte, sowie von der verwendeten Bürgerkartenumgebung variieren.
-
- - - -
- - +
+ <% if (Constants.SIGNATURE_DEVICE_BKU.equals(device)) { %> +
+ + + +
+ <% } else if (Constants.SIGNATURE_DEVICE_MOC.equals(device)) { %> +
+ <fmt:message key="/> +
+ <% } else { %> +
+ <% } // end if %> +
+ " onclick="return submitForm(false);"/> + " onclick="return submitForm(true);"/> +
- \ No newline at end of file + diff --git a/src/main/webapp/jsp/verifylist.jsp b/src/main/webapp/jsp/verifylist.jsp index fac5755..c04928a 100644 --- a/src/main/webapp/jsp/verifylist.jsp +++ b/src/main/webapp/jsp/verifylist.jsp @@ -7,6 +7,7 @@ <%@ 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"%> +<%@ include file="language.jsp" %> <% VerifySessionInformation si = (VerifySessionInformation) SessionHelper.getSession(request); @@ -18,16 +19,16 @@ - PDF-Signaturen + <fmt:message key="common.title"/> -

PDF-Signaturen

+

<% if (signature_holders.size() > 1) { %> -

Dokument Signaturen prüfen

+

<% } else { %> -

Dokument Signatur prüfen

+

<% } %> @@ -44,7 +45,7 @@ style="float:left;"> - + " />
" accept-charset="UTF-8" @@ -52,7 +53,7 @@ style="float:left;"> - + " />
<% @@ -65,9 +66,9 @@ method="get"> - + " />
- zurück + diff --git a/src/main/webapp/jsp/verifypreview.jsp b/src/main/webapp/jsp/verifypreview.jsp index 1b0adfa..5b6ae6e 100644 --- a/src/main/webapp/jsp/verifypreview.jsp +++ b/src/main/webapp/jsp/verifypreview.jsp @@ -8,6 +8,7 @@ <%@ 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"%> +<%@ include file="language.jsp" %> <% String btlurl = (String)request.getAttribute("btlurl"); @@ -21,7 +22,7 @@ - PDF-Signaturen + <fmt:message key="common.title"/> -

PDF-Signaturen

-

Vorschau: Dokument prüfen

+

+

" name="submitform" enctype="multipart/form-data" accept-charset="UTF-8" method="post"> -
+
<%= VerifyPreviewServlet.renderRequiredKeys(signature_holder.getSignatureObject(), "", false) %>
- - + " /> + " onclick="document.submitform.verify.value='true'" />
-zurück -zurück zur Liste + +