aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--webapp/WEB-INF/lib/ant-1.6.5.jarbin0 -> 1034049 bytes
-rw-r--r--webapp/WEB-INF/lib/axis-1.0.jarbin0 -> 1101593 bytes
-rw-r--r--webapp/WEB-INF/lib/axis-jaxrpc-1.0.jarbin0 -> 35635 bytes
-rw-r--r--webapp/WEB-INF/lib/axis-saaj-1.0.jarbin0 -> 18463 bytes
-rw-r--r--webapp/WEB-INF/lib/axis-wsdl4j-1.0.jarbin0 -> 109356 bytes
-rw-r--r--webapp/WEB-INF/lib/commons-codec-1.3.jarbin0 -> 46725 bytes
-rw-r--r--webapp/WEB-INF/lib/commons-discovery-0.2.jarbin0 -> 71442 bytes
-rw-r--r--webapp/WEB-INF/lib/commons-fileupload-1.1.jarbin0 -> 31825 bytes
-rw-r--r--webapp/WEB-INF/lib/commons-httpclient-3.0.jarbin0 -> 279383 bytes
-rw-r--r--webapp/WEB-INF/lib/commons-io-1.1.jarbin0 -> 61562 bytes
-rw-r--r--webapp/WEB-INF/lib/commons-logging-1.0.3.jarbin0 -> 31605 bytes
-rw-r--r--webapp/WEB-INF/lib/iaik_ecc_eval_signed-2.15.jarbin0 -> 134778 bytes
-rw-r--r--webapp/WEB-INF/lib/iaik_jce_eval_signed-3.142.jarbin0 -> 807538 bytes
-rw-r--r--webapp/WEB-INF/lib/junit-3.8.jarbin0 -> 121658 bytes
-rw-r--r--webapp/WEB-INF/lib/log4j-1.2.13.jarbin0 -> 358180 bytes
-rw-r--r--webapp/WEB-INF/lib/lucene-1.4.3.jarbin0 -> 323983 bytes
-rw-r--r--webapp/WEB-INF/lib/lucene-demos-1.4.3.jarbin0 -> 45800 bytes
-rw-r--r--webapp/WEB-INF/lib/servlet-api-2.4.jarbin0 -> 97693 bytes
-rw-r--r--webapp/WEB-INF/lib/xercesImpl-2.7.1.jarbin0 -> 1203860 bytes
-rw-r--r--webapp/WEB-INF/web.xml108
-rw-r--r--webapp/css/styles.css59
-rw-r--r--webapp/dataok.html20
-rw-r--r--webapp/index.html22
-rw-r--r--webapp/jsp/error.jsp26
-rw-r--r--webapp/jsp/local_connection_page.jsp50
-rw-r--r--webapp/jsp/null_request_page.jsp47
-rw-r--r--webapp/jsp/redirect_refresh_page.jsp36
-rw-r--r--webapp/jsp/results.jsp96
-rw-r--r--webapp/jsp/signpreview.jsp91
-rw-r--r--webapp/jsp/signupload.jsp81
-rw-r--r--webapp/jsp/verifylist.jsp96
-rw-r--r--webapp/jsp/verifypreview.jsp72
-rw-r--r--webapp/jsp/verifyupload.jsp98
33 files changed, 902 insertions, 0 deletions
diff --git a/webapp/WEB-INF/lib/ant-1.6.5.jar b/webapp/WEB-INF/lib/ant-1.6.5.jar
new file mode 100644
index 0000000..3beb3b8
--- /dev/null
+++ b/webapp/WEB-INF/lib/ant-1.6.5.jar
Binary files differ
diff --git a/webapp/WEB-INF/lib/axis-1.0.jar b/webapp/WEB-INF/lib/axis-1.0.jar
new file mode 100644
index 0000000..7cf3102
--- /dev/null
+++ b/webapp/WEB-INF/lib/axis-1.0.jar
Binary files differ
diff --git a/webapp/WEB-INF/lib/axis-jaxrpc-1.0.jar b/webapp/WEB-INF/lib/axis-jaxrpc-1.0.jar
new file mode 100644
index 0000000..4a20816
--- /dev/null
+++ b/webapp/WEB-INF/lib/axis-jaxrpc-1.0.jar
Binary files differ
diff --git a/webapp/WEB-INF/lib/axis-saaj-1.0.jar b/webapp/WEB-INF/lib/axis-saaj-1.0.jar
new file mode 100644
index 0000000..cf43f1f
--- /dev/null
+++ b/webapp/WEB-INF/lib/axis-saaj-1.0.jar
Binary files differ
diff --git a/webapp/WEB-INF/lib/axis-wsdl4j-1.0.jar b/webapp/WEB-INF/lib/axis-wsdl4j-1.0.jar
new file mode 100644
index 0000000..e90968e
--- /dev/null
+++ b/webapp/WEB-INF/lib/axis-wsdl4j-1.0.jar
Binary files differ
diff --git a/webapp/WEB-INF/lib/commons-codec-1.3.jar b/webapp/WEB-INF/lib/commons-codec-1.3.jar
new file mode 100644
index 0000000..957b675
--- /dev/null
+++ b/webapp/WEB-INF/lib/commons-codec-1.3.jar
Binary files differ
diff --git a/webapp/WEB-INF/lib/commons-discovery-0.2.jar b/webapp/WEB-INF/lib/commons-discovery-0.2.jar
new file mode 100644
index 0000000..b885548
--- /dev/null
+++ b/webapp/WEB-INF/lib/commons-discovery-0.2.jar
Binary files differ
diff --git a/webapp/WEB-INF/lib/commons-fileupload-1.1.jar b/webapp/WEB-INF/lib/commons-fileupload-1.1.jar
new file mode 100644
index 0000000..6fb2120
--- /dev/null
+++ b/webapp/WEB-INF/lib/commons-fileupload-1.1.jar
Binary files differ
diff --git a/webapp/WEB-INF/lib/commons-httpclient-3.0.jar b/webapp/WEB-INF/lib/commons-httpclient-3.0.jar
new file mode 100644
index 0000000..54a9300
--- /dev/null
+++ b/webapp/WEB-INF/lib/commons-httpclient-3.0.jar
Binary files differ
diff --git a/webapp/WEB-INF/lib/commons-io-1.1.jar b/webapp/WEB-INF/lib/commons-io-1.1.jar
new file mode 100644
index 0000000..624fc1a
--- /dev/null
+++ b/webapp/WEB-INF/lib/commons-io-1.1.jar
Binary files differ
diff --git a/webapp/WEB-INF/lib/commons-logging-1.0.3.jar b/webapp/WEB-INF/lib/commons-logging-1.0.3.jar
new file mode 100644
index 0000000..b99c937
--- /dev/null
+++ b/webapp/WEB-INF/lib/commons-logging-1.0.3.jar
Binary files differ
diff --git a/webapp/WEB-INF/lib/iaik_ecc_eval_signed-2.15.jar b/webapp/WEB-INF/lib/iaik_ecc_eval_signed-2.15.jar
new file mode 100644
index 0000000..dbed40b
--- /dev/null
+++ b/webapp/WEB-INF/lib/iaik_ecc_eval_signed-2.15.jar
Binary files differ
diff --git a/webapp/WEB-INF/lib/iaik_jce_eval_signed-3.142.jar b/webapp/WEB-INF/lib/iaik_jce_eval_signed-3.142.jar
new file mode 100644
index 0000000..a9cdd95
--- /dev/null
+++ b/webapp/WEB-INF/lib/iaik_jce_eval_signed-3.142.jar
Binary files differ
diff --git a/webapp/WEB-INF/lib/junit-3.8.jar b/webapp/WEB-INF/lib/junit-3.8.jar
new file mode 100644
index 0000000..571bc02
--- /dev/null
+++ b/webapp/WEB-INF/lib/junit-3.8.jar
Binary files differ
diff --git a/webapp/WEB-INF/lib/log4j-1.2.13.jar b/webapp/WEB-INF/lib/log4j-1.2.13.jar
new file mode 100644
index 0000000..dde9972
--- /dev/null
+++ b/webapp/WEB-INF/lib/log4j-1.2.13.jar
Binary files differ
diff --git a/webapp/WEB-INF/lib/lucene-1.4.3.jar b/webapp/WEB-INF/lib/lucene-1.4.3.jar
new file mode 100644
index 0000000..58add99
--- /dev/null
+++ b/webapp/WEB-INF/lib/lucene-1.4.3.jar
Binary files differ
diff --git a/webapp/WEB-INF/lib/lucene-demos-1.4.3.jar b/webapp/WEB-INF/lib/lucene-demos-1.4.3.jar
new file mode 100644
index 0000000..55a9afd
--- /dev/null
+++ b/webapp/WEB-INF/lib/lucene-demos-1.4.3.jar
Binary files differ
diff --git a/webapp/WEB-INF/lib/servlet-api-2.4.jar b/webapp/WEB-INF/lib/servlet-api-2.4.jar
new file mode 100644
index 0000000..dd326d3
--- /dev/null
+++ b/webapp/WEB-INF/lib/servlet-api-2.4.jar
Binary files differ
diff --git a/webapp/WEB-INF/lib/xercesImpl-2.7.1.jar b/webapp/WEB-INF/lib/xercesImpl-2.7.1.jar
new file mode 100644
index 0000000..0b100e1
--- /dev/null
+++ b/webapp/WEB-INF/lib/xercesImpl-2.7.1.jar
Binary files differ
diff --git a/webapp/WEB-INF/web.xml b/webapp/WEB-INF/web.xml
new file mode 100644
index 0000000..14184ff
--- /dev/null
+++ b/webapp/WEB-INF/web.xml
@@ -0,0 +1,108 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
+ version="2.4">
+
+ <description>
+ EGIZ PDF-AS
+ </description>
+ <display-name>PDF-AS</display-name>
+
+ <context-param>
+ <param-name>work-dir</param-name>
+ <param-value>C:\wprinz\Filer\egiz2\workspace\06PDF-AS\work</param-value>
+ <description>
+ The working directory of PDF-AS.
+ Points to a directory on the local file system where templates, config files, certificates etc. are found.
+ </description>
+ </context-param>
+
+ <listener>
+ <listener-class>at.knowcenter.wag.egov.egiz.web.PdfASServletContextListener</listener-class>
+ </listener>
+
+ <servlet>
+ <servlet-name>Sign</servlet-name>
+ <servlet-class>at.knowcenter.wag.egov.egiz.web.servlets.SignServlet</servlet-class>
+ </servlet>
+
+ <servlet>
+ <servlet-name>SignPreview</servlet-name>
+ <servlet-class>at.knowcenter.wag.egov.egiz.web.servlets.SignPreviewServlet</servlet-class>
+ </servlet>
+
+ <servlet>
+ <servlet-name>RetrieveSignatureData</servlet-name>
+ <servlet-class>at.knowcenter.wag.egov.egiz.web.servlets.RetrieveSignatureDataServlet</servlet-class>
+ </servlet>
+
+ <servlet>
+ <servlet-name>DataURL</servlet-name>
+ <servlet-class>at.knowcenter.wag.egov.egiz.web.servlets.DataURLServlet</servlet-class>
+ </servlet>
+
+ <servlet>
+ <servlet-name>Verify</servlet-name>
+ <servlet-class>at.knowcenter.wag.egov.egiz.web.servlets.VerifyServlet</servlet-class>
+ </servlet>
+
+ <servlet>
+ <servlet-name>VerifyPreview</servlet-name>
+ <servlet-class>at.knowcenter.wag.egov.egiz.web.servlets.VerifyPreviewServlet</servlet-class>
+ </servlet>
+
+ <servlet>
+ <servlet-name>AsynchronousDataResponder</servlet-name>
+ <servlet-class>at.knowcenter.wag.egov.egiz.web.AsynchronousDataResponder</servlet-class>
+ </servlet>
+
+ <servlet>
+ <servlet-name>AsynchronousRedirectResponder</servlet-name>
+ <servlet-class>at.knowcenter.wag.egov.egiz.web.AsynchronousRedirectResponder</servlet-class>
+ </servlet>
+
+
+ <servlet-mapping>
+ <servlet-name>Sign</servlet-name>
+ <url-pattern>/Sign</url-pattern>
+ </servlet-mapping>
+
+ <servlet-mapping>
+ <servlet-name>SignPreview</servlet-name>
+ <url-pattern>/SignPreview</url-pattern>
+ </servlet-mapping>
+
+ <servlet-mapping>
+ <servlet-name>RetrieveSignatureData</servlet-name>
+ <url-pattern>/RetrieveSignatureData</url-pattern>
+ </servlet-mapping>
+
+ <servlet-mapping>
+ <servlet-name>DataURL</servlet-name>
+ <url-pattern>/DataURL</url-pattern>
+ </servlet-mapping>
+
+ <servlet-mapping>
+ <servlet-name>Verify</servlet-name>
+ <url-pattern>/Verify</url-pattern>
+ </servlet-mapping>
+
+ <servlet-mapping>
+ <servlet-name>VerifyPreview</servlet-name>
+ <url-pattern>/VerifyPreview</url-pattern>
+ </servlet-mapping>
+
+ <servlet-mapping>
+ <servlet-name>AsynchronousDataResponder</servlet-name>
+ <url-pattern>/AsynchronousDataResponder</url-pattern>
+ </servlet-mapping>
+
+ <servlet-mapping>
+ <servlet-name>AsynchronousRedirectResponder</servlet-name>
+ <url-pattern>/AsynchronousRedirectResponder</url-pattern>
+ </servlet-mapping>
+
+
+
+</web-app> \ No newline at end of file
diff --git a/webapp/css/styles.css b/webapp/css/styles.css
new file mode 100644
index 0000000..4575ccc
--- /dev/null
+++ b/webapp/css/styles.css
@@ -0,0 +1,59 @@
+body {margin:10px;padding:0;font:1em Arial, sans-serif}
+
+//label {margin:0px;color:green;border:0px solid red;display:block; float:left; width:10em;text-align:right;}
+//div {margin:0 0; text-align:center;}
+//.ip, .inf {margin:2px;font-size:0.8em;}
+//#nav, #eb {border:1px solid #366090; margin:0 10%; font-size:1.5em;}
+//#nh, #sh {color:#fff;background:#366090}
+//#eh {color:#000;background:#f63}
+//#eb {border:1px solid #f63;}
+//#ct, #err, #res {margin:1em;text-align:left;}
+//#ct {white-space:nowrap;}
+//.pr {font:0.7em Arial, sans-serif;width:100%}
+
+
+.nt {font:0.7em Arial, sans-serif; border:1px solid black;text-align:left;padding:4px;background:#ddd;height:16em;overflow:auto;}
+.big {margin:100px; font-size:1.5em;}
+.sca {font:0.8em Arial, sans-serif; color:green;}
+.sin {font:0.7em Arial, sans-serif; width:99%;}
+.sim {width:120px; height:120px;}
+.st {border:1px solid #000; width:100%; border-spacing:2px;}
+.sst {font:0.7em Arial, sans-serif; text-align:left;white-space:normal; background:#eee;}
+fieldset {font:0.7em Arial, sans-serif; text-align:left; padding:2px;}
+.srt {}
+.srtd {background:#ffffe7}
+
+.srcc_0 {background:#bdff7b;}
+.srcc_1, .srcc_3 {background:#ff0;}
+.srcc_2, .srcc_4, .srcc_5, .srcc_99 {background:#f66;}
+
+.srsc_0 {background:#bdff7b;}
+.srsc_1 {background:#f66;}
+.srsc_2 {background:#f66;}
+
+.srmc_0 {background:#bdff7b;}
+.srmc_1, .srmc_99 {background:#ff0;}
+.srmc_2, .srmc_3 {background:#f66;}
+
+.sigprevtablediv {width:100%;}
+
+
+
+
+.maindiv {margin:0 0; text-align:center;}
+.mainframe {border:1px solid #366090; margin:0 10%; font-size:1.5em;}
+.mainheadline {color:#fff;background:#366090}
+
+.errorheadline {color:#000;background:#f63}
+
+.contentsdiv {margin:1em;text-align:left;}
+
+.uploadlabel {margin:0px;color:green;border:0px solid red;display:block; float:left; width:10em;text-align:right;}
+
+.field {margin:2px;font-size:0.8em;}
+.button {margin:2px;font-size:0.8em;}
+
+.previewfield {font:0.7em Arial, sans-serif;width:100%}
+
+.listtype {font-weight:bold; text-align:left;}
+.listtable {font:0.7em Arial, sans-serif; text-align:left;} \ No newline at end of file
diff --git a/webapp/dataok.html b/webapp/dataok.html
new file mode 100644
index 0000000..372e148
--- /dev/null
+++ b/webapp/dataok.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html>
+<head>
+<title>PDF-AS Amtssignaturen</title>
+<link rel="stylesheet" type="text/css" href="/pdf-as/css/styles.css" />
+</head>
+<body>
+<div class="maindiv">
+<h1>PDF-AS Amtssignaturen</h1>
+<div class="mainframe">
+<div class="mainheadline">Daten&auml;nderung</div>
+
+<p>
+Die Daten wurden erfolgreich &uuml;bernommen.
+</p>
+
+</div>
+</div>
+</body>
+</html> \ No newline at end of file
diff --git a/webapp/index.html b/webapp/index.html
new file mode 100644
index 0000000..b2f0ddb
--- /dev/null
+++ b/webapp/index.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html>
+<head>
+<title>PDF-AS Amtssignaturen</title>
+<link rel="stylesheet" type="text/css" href="/pdf-as/css/styles.css" />
+</head>
+<body>
+<div class="maindiv">
+<h1>PDF-AS Amtssignaturen</h1>
+<div class="mainframe">
+<div class="mainheadline">Bitte w&auml;hlen Sie aus</div>
+
+<p>
+<a href="jsp/verifyupload.jsp">Dokument Signatur pr&uuml;fen</a><br />
+<a href="jsp/verifyupload.jsp?freetext=true">Dokument Signatur mit freier Texteingabe pr&uuml;fen</a><br />
+<a href="jsp/signupload.jsp">Dokument Signatur erstellen</a><br />
+</p>
+
+</div>
+</div>
+</body>
+</html> \ No newline at end of file
diff --git a/webapp/jsp/error.jsp b/webapp/jsp/error.jsp
new file mode 100644
index 0000000..0d77ead
--- /dev/null
+++ b/webapp/jsp/error.jsp
@@ -0,0 +1,26 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html>
+<head>
+<title>PDF-AS Amtssignaturen Resultat</title>
+<link rel="stylesheet" type="text/css" href="/pdf-as/css/styles.css" />
+</head>
+<body>
+<%
+ String error = (request.getAttribute("error") == null ? "" : request.getAttribute("error").toString());
+ String cause = (request.getAttribute("cause") == null ? "" : request.getAttribute("cause").toString());
+ %>
+<div class="maindiv">
+<h1>PDF-AS Amtssignaturen</h1>
+<div class="mainframe">
+<div class="errorheadline">Ein Fehler ist aufgetreten</div>
+<div class="contentsdiv">
+<%= error %><br />
+<br />Grund:
+<br />
+<strong><%= cause %></strong>
+</div>
+</div>
+<a class="big" href="/pdf-as/">Weiter...</a>
+</div>
+</body>
+</html> \ No newline at end of file
diff --git a/webapp/jsp/local_connection_page.jsp b/webapp/jsp/local_connection_page.jsp
new file mode 100644
index 0000000..91ba403
--- /dev/null
+++ b/webapp/jsp/local_connection_page.jsp
@@ -0,0 +1,50 @@
+<%@ page contentType="text/html; charset=UTF-8" %>
+<%
+ String local_request_url = (String)request.getAttribute("local_request_url");
+ String quoted_request = (String)request.getAttribute("quoted_request");
+ String data_url = (String)request.getAttribute("data_url");
+ String redirect_url = (String)request.getAttribute("redirect_url");
+%>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html>
+<head>
+<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
+<title>PDF-AS Amtssignaturen Lokale Verbindung</title>
+<link rel="stylesheet" type="text/css" href="/pdf-as/css/styles.css" />
+</head>
+
+<body onload="document.submitform.submit()">
+
+<div class="maindiv">
+
+<h1>PDF-AS Amtssignaturen</h1>
+
+<div class="mainframe">
+<div class="mainheadline">Verbindung zu BKU/A1</div>
+
+<div>Die Verbindung wird hergestellt.<br/>Bitte haben sie etwas Geduld.</div>
+
+
+<form action="<%= local_request_url %>"
+ name="submitform"
+ accept-charset="UTF-8"
+ method="post">
+<!-- enctype="multipart/form-data"-->
+
+
+
+<input type="hidden" name="XMLRequest" value="<%= quoted_request %>" />
+
+<input type="hidden" name="DataURL" value="<%= data_url %>" />
+<input type="hidden" name="RedirectURL" value="<%= redirect_url %>" />
+
+<input class="ip" type="submit" value="Abschicken..." />
+
+</form>
+
+
+</div>
+<a class="big" href="/pdf-as/">zurück</a>
+</div>
+</body>
+</html>
diff --git a/webapp/jsp/null_request_page.jsp b/webapp/jsp/null_request_page.jsp
new file mode 100644
index 0000000..60e35a9
--- /dev/null
+++ b/webapp/jsp/null_request_page.jsp
@@ -0,0 +1,47 @@
+<%@ 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");
+%>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html>
+<head>
+<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
+<title>PDF-AS Amtssignaturen Lokale Verbindung</title>
+<link rel="stylesheet" type="text/css" href="/pdf-as/css/styles.css" />
+</head>
+
+<body onload="document.submitform.submit()">
+
+<div class="maindiv">
+
+<h1>PDF-AS Amtssignaturen</h1>
+
+<div class="mainframe">
+<div class="mainheadline">Verbindung zu BKU/A1</div>
+
+<div>Die Verbindung wird hergestellt.<br/>Bitte haben sie etwas Geduld.</div>
+
+
+<form action="<%= local_request_url %>"
+ name="submitform"
+ accept-charset="UTF-8"
+ method="post">
+<!-- enctype="multipart/form-data"-->
+
+
+
+<input type="hidden" name="XMLRequest" value="<?xml version='1.0' encoding='UTF-8'?><NullOperationRequest xmlns='http://www.buergerkarte.at/namespaces/securitylayer/1.2#'/>" />
+
+<input type="hidden" name="DataURL" value="<%= data_url %>" />
+
+<input class="ip" type="submit" value="Abschicken..." />
+
+</form>
+
+
+</div>
+<a class="big" href="/pdf-as/">zurück</a>
+</div>
+</body>
+</html>
diff --git a/webapp/jsp/redirect_refresh_page.jsp b/webapp/jsp/redirect_refresh_page.jsp
new file mode 100644
index 0000000..ee047c9
--- /dev/null
+++ b/webapp/jsp/redirect_refresh_page.jsp
@@ -0,0 +1,36 @@
+<%@ page contentType="text/html; charset=UTF-8" %>
+<%
+ String refresh_url = (String)request.getAttribute("refresh_url");
+%>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html>
+<head>
+<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
+
+<meta http-equiv="refresh" content="1"/>
+
+<title>PDF-AS Amtssignaturen Lokale Verbindung</title>
+<link rel="stylesheet" type="text/css" href="/pdf-as/css/styles.css" />
+</head>
+<body>
+
+<div class="maindiv">
+
+<h1>PDF-AS Amtssignaturen</h1>
+
+<div class="mainframe">
+<div class="mainheadline">Verbindung zu BKU/A1</div>
+
+<div>Bitte warten.<br/>Sobald ein Ergebnis vorliegt, wird es hier angezeigt.</div>
+
+<div>
+Diese Seite lädt sich automatisch neu.<br/>
+Sollte dies nicht funktionieren, so folgen Sie bitte diesem Link:<br/>
+<a href="<%= refresh_url %>"><%= refresh_url %></a>
+</div>
+
+</div>
+<a class="big" href="/pdf-as/">zurück</a>
+</div>
+</body>
+</html>
diff --git a/webapp/jsp/results.jsp b/webapp/jsp/results.jsp
new file mode 100644
index 0000000..833c35a
--- /dev/null
+++ b/webapp/jsp/results.jsp
@@ -0,0 +1,96 @@
+<%@ 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");
+ boolean backbutton = true;
+ if (bb != null && bb.equals("false"))
+ {
+ backbutton = false;
+ }
+%>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html>
+<head>
+ <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
+ <title>PDF-AS Amtssignaturen Resultat</title>
+ <link rel="stylesheet" type="text/css" href="/pdf-as/css/styles.css" />
+</head>
+<body>
+<div class="maindiv">
+<h1>PDF-AS Amtssignaturen</h1>
+<div class="mainframe">
+<div class="mainheadline">Resultat</div>
+
+<div class="contentsdiv">
+<%
+ Iterator resit = results.iterator();
+ while (resit.hasNext())
+ {
+ SignatureResponse result = (SignatureResponse) resit.next();
+%>
+
+
+
+
+<fieldset><legend><b>Zertifikat</b></legend>
+<table class="srt">
+ <tr><td>Signator:</td><td class="srtd"><%= result.getX509SubjectName() %></td></tr>
+ <tr><td>Aussteller:</td><td class="srtd"><%= result.getX509IssuerName() %></td></tr>
+ <tr><td>Seriennummer:</td><td class="srtd"><%= result.getX509SerialNumber() %></td></tr>
+
+<%
+ List public_properties = result.getPublicProperties();
+ Iterator propit = public_properties.iterator();
+ while (propit.hasNext())
+ {
+ String public_property = (String) propit.next();
+%>
+ <tr><td> Eigenschaft:</td><td class="srtd"><%= public_property %></td></tr>
+<%
+ }
+%>
+ <tr><td>Zertifikat:</td><td class="srcc_<%= result.getCertificateCheckCode() %>"><%= result.getCertificateCheckInfo() %></td></tr>
+
+</table>
+</fieldset>
+<fieldset><legend><b>Signatur-Check</b></legend>
+<div class="srsc_<%= result.getSignatureCheckCode() %>"><%= result.getSignatureCheckInfo() %></div>
+</fieldset>
+<fieldset><legend><b>Manifest-Check</b></legend>
+<div class="srmc_<%= result.getSignatureManifestCheckCode() %>"><%= result.getSignatureManifestCheckInfo() %></div>
+</fieldset>
+
+
+
+
+
+<%
+ if (resit.hasNext())
+ {
+%>
+ <br />
+<%
+ }
+ }
+%>
+</div>
+
+</div>
+<%
+ if (backbutton)
+ {
+%>
+<a class="big" href="/pdf-as/">zur&uuml;ck</a>
+<%
+ }
+%>
+</div>
+</body>
+</html>
+
+
+
+
diff --git a/webapp/jsp/signpreview.jsp b/webapp/jsp/signpreview.jsp
new file mode 100644
index 0000000..4b9189a
--- /dev/null
+++ b/webapp/jsp/signpreview.jsp
@@ -0,0 +1,91 @@
+<%@ 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.SessionInformation" %>
+<%@ page import="at.knowcenter.wag.egov.egiz.sig.SignatureData" %>
+<%
+ SessionInformation si = (SessionInformation) 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.iui.signature_data;
+ document_text = new String(data.getData(), data.getCharacterEncoding());
+ }
+%>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html>
+<head>
+ <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
+ <title>PDF-AS Amtssignaturen Vorschau</title>
+ <link rel="stylesheet" type="text/css" href="/pdf-as/css/styles.css" />
+</head>
+<body>
+<div class="maindiv">
+<h1>PDF-AS Amtssignaturen</h1>
+<div class="mainframe">
+<div class="mainheadline">Vorschau: Dokument Signieren</div>
+
+
+<%
+ if (si.mode.equals(FormFields.VALUE_MODE_TEXTUAL))
+ {
+%>
+<form action="<%= submit_url %>"
+ name="submitform"
+ enctype="multipart/form-data"
+ accept-charset="UTF-8"
+ method="get">
+<div class="contentsdiv">
+
+
+<pre class="nt"><%= document_text %></pre>
+
+<br />
+
+<input class="button" type="submit" value="Signieren..." />
+
+</div>
+</form>
+
+
+<%
+ }
+ else
+ {
+%>
+
+<form action="<%= signature_data_url %>"
+ method="get"
+ target="blank_">
+<div class="contentsdiv">
+
+<input class="button" type="submit" value="Vorschaudokument anzeigen..." />
+
+</div>
+</form>
+
+<br />
+
+<form action="<%= submit_url %>"
+ method="get">
+<div class="contentsdiv">
+
+<input class="button" type="submit" value="Signieren..." />
+
+</div>
+</form>
+
+<%
+ }
+%>
+
+
+</div>
+<a class="big" href="/pdf-as/">zurück</a>
+</div>
+</body>
+</html>
diff --git a/webapp/jsp/signupload.jsp b/webapp/jsp/signupload.jsp
new file mode 100644
index 0000000..1474da5
--- /dev/null
+++ b/webapp/jsp/signupload.jsp
@@ -0,0 +1,81 @@
+<%@ page import="at.knowcenter.wag.egov.egiz.web.FormFields" %>
+<%@ page import="at.knowcenter.wag.egov.egiz.web.SessionAttributes" %>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html>
+<head>
+ <title>PDF-AS Amtssignaturen</title>
+ <link rel="stylesheet" type="text/css" href="/pdf-as/css/styles.css" />
+</head>
+<body>
+<div class="maindiv">
+<h1>PDF-AS Amtssignaturen</h1>
+<div class="mainframe">
+<div class="mainheadline">Dokument Signatur erstellen</div>
+
+<form name="submitform"
+ enctype="multipart/form-data"
+ accept-charset="UTF-8"
+ method="post"
+ action="/pdf-as/Sign">
+
+<div class="contentsdiv">
+
+<!--
+<label class="uploadlabel">Name:</label><%= request.getSession().getAttribute(SessionAttributes.ATTRIBUTE_USER_NAME) %>
+-->
+<br />
+<br />
+
+<label class="uploadlabel">PDF Datei:</label>
+
+<input class="field" size="20" type="file" name="<%= FormFields.FIELD_UPLOAD %>" accept="application/pdf" />
+
+<br />
+
+<label class="uploadlabel">Signatur Typ:</label>
+
+<%= FormFields.generateTypeSelectBox() %>
+
+<br />
+
+<label class="uploadlabel">Signier Applikation:</label>
+
+<%= FormFields.generateConnectorSelectBox() %>
+
+<br />
+
+<label class="uploadlabel">Signier Modus:</label>
+
+<select name="<%= FormFields.FIELD_MODE %>" class="field">
+<option value="<%= FormFields.VALUE_MODE_BINARY %>" selected="selected">bin&auml;r</option>
+<option value="<%= FormFields.VALUE_MODE_TEXTUAL %>">textuell</option>
+<option value="<%= FormFields.VALUE_MODE_DETACHED %>">detached</option>
+</select>
+
+<br />
+
+<label class="uploadlabel">Dokument:</label>
+<select name="<%= FormFields.FIELD_DOWNLOAD %>" class="field" >
+<option value="<%= FormFields.VALUE_DOWNLOAD_INLINE %>" selected="selected">im Browser anzeigen</option>
+<option value="<%= FormFields.VALUE_DOWNLOAD_ATTACHMENT %>">als Download</option>
+</select>
+
+
+<br />
+<br />
+
+
+<label class="uploadlabel">&nbsp;</label>
+<input type="hidden" name="<%= FormFields.FIELD_PREVIEW %>" value="false" />
+<input class="button" type="submit" value="Signatur erstellen" />
+<input class="button" type="submit" value="Vorschau" onclick="document.submitform.<%= FormFields.FIELD_PREVIEW %>.value='true'" />
+
+
+</div>
+</form>
+
+</div>
+<a class="big" href="/pdf-as/">zurück</a>
+</div>
+</body>
+</html> \ No newline at end of file
diff --git a/webapp/jsp/verifylist.jsp b/webapp/jsp/verifylist.jsp
new file mode 100644
index 0000000..b041c02
--- /dev/null
+++ b/webapp/jsp/verifylist.jsp
@@ -0,0 +1,96 @@
+<%@ page contentType="text/html; charset=UTF-8" %>
+<%@ page import="java.util.List" %>
+<%@ 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.SessionInformation" %>
+<%@ page import="at.knowcenter.wag.egov.egiz.web.servlets.VerifyPreviewServlet" %>
+<%
+ SessionInformation si = (SessionInformation) request.getSession(false).getAttribute(SessionAttributes.ATTRIBUTE_SESSION_INFORMATION);
+ List signature_holders = si.signature_holders;
+
+%>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html>
+<head>
+ <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
+ <title>PDF-AS Amtssignaturen Vorschau</title>
+ <link rel="stylesheet" type="text/css" href="/pdf-as/css/styles.css" />
+</head>
+<body>
+<div class="maindiv">
+<h1>PDF-AS Amtssignaturen</h1>
+<div class="mainframe">
+<%
+ if (signature_holders.size() > 1)
+ {
+%>
+<div class="mainheadline">Extrahierte Signaturen</div>
+<%
+ }
+ else
+ {
+%>
+<div class="mainheadline">Extrahierte Signatur</div>
+<%
+ }
+%>
+
+
+<div class="contentsdiv">
+
+
+<%
+ for (int i = 0; i < signature_holders.size(); i++)
+ {
+ SignatureHolder holder = (SignatureHolder) signature_holders.get(i);
+%>
+
+
+<%= VerifyPreviewServlet.renderRequiredKeysText(holder.getSignatureObject()) %>
+
+<form action="<%= response.encodeURL(request.getContextPath() + "/VerifyPreview") %>"
+ accept-charset="UTF-8"
+ style="float:left;"
+ method="get"
+ target="_blank">
+<input type="hidden" name="<%= FormFields.FIELD_VERIFY_WHICH %>" value="<%= i %>" />
+<input type="hidden" name="<%= FormFields.FIELD_PREVIEW %>" value="false" />
+
+<input class="button" type="submit" value="Nur diese Signatur pr&uuml;fen" />
+</form>
+
+<form action="<%= response.encodeURL(request.getContextPath() + "/VerifyPreview") %>"
+ accept-charset="UTF-8"
+ method="get"
+ style="float:left;"
+ target="_blank">
+<input type="hidden" name="<%= FormFields.FIELD_VERIFY_WHICH %>" value="<%= i %>" />
+<input type="hidden" name="<%= FormFields.FIELD_PREVIEW %>" value="true" />
+
+<input class="button" type="submit" value="Vorschau..." />
+</form>
+
+<hr style="clear:both;" />
+
+<%
+ }
+%>
+
+<form action="<%= response.encodeURL(request.getContextPath() + "/VerifyPreview") %>"
+ accept-charset="UTF-8"
+ method="get">
+<input type="hidden" name="<%= FormFields.FIELD_VERIFY_WHICH %>" value="<%= FormFields.VALUE_VERIFY_WHICH_ALL %>" />
+<input type="hidden" name="<%= FormFields.FIELD_PREVIEW %>" value="false" />
+
+<input class="button" type="submit" value="Alle pr&uuml;fen" />
+</form>
+
+
+</div>
+
+</div>
+<a class="big" href="/pdf-as/">zur&uuml;ck</a>
+</div>
+</body>
+</html> \ No newline at end of file
diff --git a/webapp/jsp/verifypreview.jsp b/webapp/jsp/verifypreview.jsp
new file mode 100644
index 0000000..cd4549c
--- /dev/null
+++ b/webapp/jsp/verifypreview.jsp
@@ -0,0 +1,72 @@
+<%@ page contentType="text/html; charset=UTF-8" %>
+<%@ page import="java.util.List" %>
+<%@ 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.SessionInformation" %>
+<%@ page import="at.knowcenter.wag.egov.egiz.web.servlets.VerifyPreviewServlet" %>
+<%
+ SessionInformation si = (SessionInformation) request.getSession(false).getAttribute(SessionAttributes.ATTRIBUTE_SESSION_INFORMATION);
+ 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);
+%>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html>
+<head>
+<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
+<title>PDF-AS Amtssignaturen Vorschau</title>
+<link rel="stylesheet" type="text/css" href="/pdf-as/css/styles.css" />
+
+<script type="text/javascript">
+ function initSigValues()
+ {
+<%= VerifyPreviewServlet.renderRequiredKeysJavaScript(signature_holder.getSignatureObject(), "") %>
+ }
+</script>
+
+</head>
+
+<body onload="initSigValues()">
+<div class="maindiv">
+
+<h1>PDF-AS Amtssignaturen</h1>
+
+<div class="mainframe">
+<div class="mainheadline">Vorschau: Dokument Pr&uuml;fen</div>
+
+<form action="<%= response.encodeURL(request.getContextPath() + "/VerifyPreview") %>"
+ name="submitform"
+ enctype="multipart/form-data"
+ accept-charset="UTF-8"
+ method="post">
+<div class="contentsdiv">
+
+
+<input type="hidden" name="<%= FormFields.FIELD_VERIFY_WHICH %>" value="<%= verify_which %>" />
+
+<div>Rekonstruktion der Signaturmarke:</div>
+<textarea class="previewfield" cols="80" rows="14" name="<%= FormFields.FIELD_RAW_DOCUMENT_TEXT %>"><%= signature_holder.getSignedText() %></textarea>
+
+<%= VerifyPreviewServlet.renderRequiredKeys(signature_holder.getSignatureObject(), "", false) %>
+
+<br />
+
+<input type="hidden" name="verify" value="false" />
+
+<input class="button" type="submit" value="Werte &uuml;bernehmen" />
+
+<input class="button" type="submit" value="Werte &uuml;bernehmen und pr&uuml;fen" onclick="document.submitform.verify.value='true'" />
+
+<input class="button" type="submit" value="Abbrechen" onclick="window.close()" />
+
+</div>
+</form>
+
+</div>
+<!--<a class=\"big\" href="/pdf-as" onclick="window.close()">zur&uuml;ck</a>-->
+</div>
+</body>
+
+</html>
diff --git a/webapp/jsp/verifyupload.jsp b/webapp/jsp/verifyupload.jsp
new file mode 100644
index 0000000..ab63e2f
--- /dev/null
+++ b/webapp/jsp/verifyupload.jsp
@@ -0,0 +1,98 @@
+<%@ page import="at.knowcenter.wag.egov.egiz.web.FormFields" %>
+<%
+ boolean freetext_entry = false;
+ String parameter_freetext = (String)request.getParameter(FormFields.PARAMETER_FREE_TEXT_ENTRY);
+ if (parameter_freetext != null && parameter_freetext.equals(FormFields.VALUE_TRUE))
+ {
+ freetext_entry = true;
+ }
+%>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html>
+<head>
+ <title>PDF-AS Amtssignaturen</title>
+ <link rel="stylesheet" type="text/css" href="/pdf-as/css/styles.css" />
+</head>
+<body>
+<div class="maindiv">
+<h1>PDF-AS Amtssignaturen</h1>
+<div class="mainframe">
+<div class="mainheadline">Dokument Signatur pr&uuml;fen</div>
+
+
+<form name="submitform" enctype="multipart/form-data" method="post" action="/pdf-as/Verify">
+
+<div class="contentsdiv">
+
+<%
+ if (freetext_entry)
+ {
+%>
+<div>Vollst&auml;ndiger Dokumenttext:</div>
+<textarea class="previewfield" cols="80" rows="14" name="<%= FormFields.FIELD_UPLOAD %>">Hier bitte den vollständigen Dokumenttext samt Signaturblock eingeben.</textarea>
+<br />
+<%
+ }
+ else
+ {
+%>
+<br />
+
+<label class="uploadlabel">PDF Datei:</label>
+
+<input class="field" size="20" type="file" name="<%= FormFields.FIELD_UPLOAD %>" accept="application/pdf,text/plain" />
+<%
+ }
+%>
+
+<br />
+
+<label class="uploadlabel">Pr&uuml;f Applikation:</label>
+
+<%= FormFields.generateConnectorSelectBox() %>
+
+<%
+ if (freetext_entry)
+ {
+%>
+
+<br />
+
+<label class="uploadlabel">Pr&uuml;f Modus:</label>
+
+<span>textuell</span>
+<!--
+<input type="hidden" name="<%= FormFields.FIELD_MODE %>" value="<%= FormFields.VALUE_MODE_TEXTUAL %>" />
+-->
+<%
+ }
+ else
+ {
+%>
+<!--
+<select name="<%= FormFields.FIELD_MODE %>" class="field">
+<option value="<%= FormFields.VALUE_MODE_BINARY %>" selected="selected">bin&auml;r</option>
+<option value="<%= FormFields.VALUE_MODE_TEXTUAL %>">textuell</option>
+</select>
+-->
+<%
+ }
+%>
+
+<br />
+<br />
+
+
+<label class="uploadlabel">&nbsp;</label>
+<input type="hidden" name="<%= FormFields.FIELD_PREVIEW %>" value="false" />
+<input class="button" type="submit" value="Alle pr&uuml;fen" />
+<input class="button" type="submit" value="Signaturen auflisten" onclick="document.submitform.<%= FormFields.FIELD_PREVIEW %>.value='true'" />
+
+</div>
+</form>
+
+</div>
+<a class="big" href="/pdf-as/">zurück</a>
+</div>
+</body>
+</html> \ No newline at end of file