diff options
Diffstat (limited to 'pdf-as-lib')
-rw-r--r-- | pdf-as-lib/pom.xml | 226 | ||||
-rw-r--r-- | pdf-as-lib/src/main/assembly/assemble_distribution_brz.xml | 44 | ||||
-rw-r--r-- | pdf-as-lib/src/main/assembly/assemble_distribution_cl.xml | 66 | ||||
-rw-r--r-- | pdf-as-lib/src/main/assembly/assemble_distribution_ws.xml | 203 | ||||
-rw-r--r-- | pdf-as-lib/src/main/assembly/assemble_libraries.xml | 16 | ||||
-rw-r--r-- | pdf-as-lib/src/main/assembly/assemble_repository.xml | 19 | ||||
-rw-r--r-- | pdf-as-lib/src/main/distribution/brz/pdf-as.bat | 8 | ||||
-rw-r--r-- | pdf-as-lib/src/main/distribution/cl/pdf-as.bat | 8 | ||||
-rw-r--r-- | pdf-as-lib/src/main/distribution/cl/pdf-as.sh | 8 | ||||
-rw-r--r-- | pdf-as-lib/src/main/distribution/cl/sign.bat | 1 | ||||
-rw-r--r-- | pdf-as-lib/src/main/distribution/cl/sign.sh | 3 | ||||
-rw-r--r-- | pdf-as-lib/src/site/changes.xml | 252 | ||||
-rw-r--r-- | pdf-as-lib/src/site/checkstyle.xml | 109 |
13 files changed, 25 insertions, 938 deletions
diff --git a/pdf-as-lib/pom.xml b/pdf-as-lib/pom.xml index dba3bf3..01b2279 100644 --- a/pdf-as-lib/pom.xml +++ b/pdf-as-lib/pom.xml @@ -2,136 +2,30 @@ <project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
<modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>at.gv.egiz</groupId>
+ <artifactId>pdf-as</artifactId>
+ <version>3.3-SNAPSHOT</version>
+ </parent>
+
<packaging>jar</packaging>
- <groupId>knowcenter</groupId>
- <artifactId>pdf-as</artifactId>
- <name>PDF-AS</name>
- <version>3.2</version>
- <!-- don't forget to set the version string at.knowcenter.wag.egov.egiz.PdfAS.PDFAS_VERSION accordingly -->
-
- <description>Amtssignatur fuer elektronische Aktenfuehrung</description>
- <url>http://egovlabs.gv.at/projects/pdf-as</url>
- <inceptionYear>2006</inceptionYear>
-
- <developers>
-
- <developer>
- <id>wlackner</id>
- <name>Wilfried Lackner</name>
- <email>wlackner@iicm.edu</email>
- <organization>KnowCenter</organization>
- <roles>
- <role>developer</role>
- </roles>
- <timezone>+1</timezone>
- </developer>
-
- <developer>
- <id>wprinz</id>
- <name>Wolfgang Prinz</name>
- <email>w.prinz@netconomy.net</email>
- <organization>Netconomy</organization>
- <roles>
- <role>developer</role>
- </roles>
- <timezone>+1</timezone>
- </developer>
-
- <developer>
- <id>tknall</id>
- <name>Thomas Knall</name>
- <email>t.knall@datentechnik-innovation.com</email>
- <organization>Datentechnik Innovation GmbH</organization>
- <roles>
- <role>developer</role>
- </roles>
- <timezone>+1</timezone>
- </developer>
-
- <developer>
- <id>tzefferer</id>
- <name>Thomas Zefferer</name>
- <email>thomas.zefferer@egiz.gv.at</email>
- <organization>EGIZ</organization>
- <roles>
- <role>developer</role>
- </roles>
- <timezone>+1</timezone>
- </developer>
-
- <developer>
- <id>gfliess</id>
- <name>Gerhard Fliess</name>
- <organization>XiCrypt</organization>
- <roles>
- <role>developer</role>
- </roles>
- <timezone>+1</timezone>
- </developer>
-
- <developer>
- <id>amavriqi</id>
- <name>Arian Mavriqi</name>
- <email>amavriqi@iicm.edu</email>
- <organization>KnowCenter</organization>
- <roles>
- <role>developer</role>
- </roles>
- <timezone>+1</timezone>
- </developer>
-
- <developer>
- <id>rpiazzi</id>
- <name>Roland Piazzi</name>
- <email>roland.piazzi@iaik.tugraz.at</email>
- <organization>EGIZ</organization>
- <roles>
- <role>developer</role>
- </roles>
- <timezone>+1</timezone>
- </developer>
-
- </developers>
+ <artifactId>pdf-as-lib</artifactId>
+ <name>PDF-AS Library</name>
+ <description>Library zur Amtssignatur fuer elektronische Aktenfuehrung</description>
<build>
- <resources>
-
- <resource>
- <filtering>false</filtering>
- <directory>src/main/resources</directory>
- <excludes>
- <exclude>**/package.html</exclude>
- </excludes>
- </resource>
- </resources>
-
- <finalName>${project.artifactId}-${project.version}</finalName>
+ <finalName>pdf-as-${project.version}</finalName>
<plugins>
<plugin>
- <artifactId>maven-resources-plugin</artifactId>
- <configuration>
- <encoding>UTF-8</encoding>
- </configuration>
- </plugin>
-
- <plugin>
- <artifactId>maven-site-plugin</artifactId>
- <configuration>
- <locales>en</locales>
- </configuration>
- </plugin>
-
- <plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
- <source>1.4</source>
- <target>1.4</target>
<excludes>
<exclude>at/gv/egiz/pdfas/test/*/</exclude>
<exclude>demo/*/</exclude>
@@ -140,23 +34,6 @@ </plugin>
<plugin>
- <artifactId>maven-assembly-plugin</artifactId>
- <configuration>
- <descriptors>
- <!--
- <descriptor>src/main/assembly/assemble_libraries.xml</descriptor>
- <descriptor>src/main/assembly/assemble_distribution_ws.xml</descriptor>
- <descriptor>src/main/assembly/assemble_repository.xml</descriptor>
- <descriptor>src/main/assembly/assemble_distribution_brz.xml</descriptor>
- <descriptor>src/main/assembly/assemble_distribution_cl.xml</descriptor>
- -->
- <descriptor>src/main/assembly/assemble_distribution_cl.xml</descriptor>
- <descriptor>src/main/assembly/assemble_repository.xml</descriptor>
- </descriptors>
- </configuration>
- </plugin>
-
- <plugin>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
@@ -176,33 +53,6 @@ </configuration>
</plugin>
- <plugin>
- <artifactId>maven-javadoc-plugin</artifactId>
- <configuration>
- <public>true</public>
- <package>true</package>
- <private>true</private>
- <links>
- <link>http://download.oracle.com/javase/1.4.2/docs/api/</link>
- <link>http://logging.apache.org/log4j/docs/api/</link>
- </links>
- <source>1.4</source>
- <target>1.4</target>
- <verbose>false</verbose>
- <quiet>true</quiet>
- <windowtitle>${project.name} v${project.version} API</windowtitle>
- <!-- additionalJOption>-J-Xms256m -J-Xmx512m</additionalJOption-->
- <tags>
- <tag>
- <name>todo</name>
- <placement>a</placement>
- <head>To Do:</head>
- </tag>
- </tags>
- <maxmemory>512m</maxmemory>
- </configuration>
- </plugin>
-
</plugins>
</build>
@@ -212,151 +62,125 @@ <dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
- <version>1.3</version>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
- <version>1.2.13</version>
</dependency>
<dependency>
<groupId>lucene</groupId>
<artifactId>lucene</artifactId>
- <version>1.4.3</version>
</dependency>
<dependency>
<groupId>lucene</groupId>
<artifactId>lucene-demos</artifactId>
- <version>1.4.3</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
- <version>3.8</version>
</dependency>
<dependency>
<groupId>xerces</groupId>
<artifactId>xercesImpl</artifactId>
- <version>2.7.1</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
- <version>1.1</version>
</dependency>
<dependency>
<groupId>axis</groupId>
<artifactId>axis</artifactId>
- <version>1.0</version>
</dependency>
<dependency>
<groupId>axis</groupId>
<artifactId>axis-saaj</artifactId>
- <version>1.0</version>
</dependency>
<dependency>
<groupId>axis</groupId>
<artifactId>axis-wsdl4j</artifactId>
- <version>1.0</version>
</dependency>
<dependency>
<groupId>axis</groupId>
<artifactId>axis-jaxrpc</artifactId>
- <version>1.0</version>
</dependency>
<dependency>
<groupId>commons-httpclient</groupId>
<artifactId>commons-httpclient</artifactId>
- <version>3.0</version>
</dependency>
<dependency>
<groupId>commons-discovery</groupId>
<artifactId>commons-discovery</artifactId>
- <version>0.2</version>
</dependency>
-
+
<dependency>
<groupId>iaik</groupId>
<artifactId>iaik_jce_eval_signed</artifactId>
- <version>4.0</version>
</dependency>
<dependency>
<groupId>iaik</groupId>
<artifactId>iaik_ecc_eval_signed</artifactId>
- <version>2.19</version>
</dependency>
-
+
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
- <version>2.3</version>
</dependency>
<!-- nur falls jdk < 1.5 verwendet wird -->
+ <!--
<dependency>
<groupId>xml-apis</groupId>
<artifactId>xml-apis</artifactId>
- <version>1.3.02</version>
</dependency>
+ -->
<!-- iText -->
<dependency>
<groupId>com.lowagie</groupId>
<artifactId>itext-2.1.5-rev3628-pdfas</artifactId>
- <version>1.1</version>
- </dependency>
-
+ </dependency>
+
<!-- pdfbox -->
<dependency>
<groupId>pdfbox</groupId>
<artifactId>pdfbox-0.7.2-pdfas</artifactId>
- <version>1.1</version>
</dependency>
-
+
<dependency>
- <groupId>org.apache.pdfbox</groupId>
- <artifactId>pdfbox</artifactId>
- <version>0.8.0-incubating</version>
+ <groupId>org.apache.pdfbox</groupId>
+ <artifactId>pdfbox</artifactId>
</dependency>
-
+
<dependency>
<groupId>ognl</groupId>
<artifactId>ognl</artifactId>
- <version>2.6.9</version>
- </dependency>
-
- <dependency>
- <groupId>javax.servlet</groupId>
- <artifactId>servlet-api</artifactId>
- <version>2.4</version>
- <scope>runtime</scope>
</dependency>
<dependency>
<groupId>com.google.zxing</groupId>
<artifactId>core</artifactId>
- <version>1.6-SNAPSHOT</version>
+ <classifier>jdk14</classifier>
</dependency>
-
+
<dependency>
<groupId>com.google.zxing</groupId>
<artifactId>javase</artifactId>
- <version>1.6-SNAPSHOT</version>
+ <classifier>jdk14</classifier>
</dependency>
-
+
</dependencies>
</project>
diff --git a/pdf-as-lib/src/main/assembly/assemble_distribution_brz.xml b/pdf-as-lib/src/main/assembly/assemble_distribution_brz.xml deleted file mode 100644 index 76ae2b5..0000000 --- a/pdf-as-lib/src/main/assembly/assemble_distribution_brz.xml +++ /dev/null @@ -1,44 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?>
- <!-- http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html -->
-<assembly xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/assembly-1.0.0.xsd">
- <id>distribution_brz</id>
- <formats>
- <format>zip</format>
- </formats>
- <includeBaseDirectory>true</includeBaseDirectory>
-
- <dependencySets>
- <dependencySet>
- <unpack>false</unpack>
- <scope>runtime</scope>
- <outputDirectory>lib</outputDirectory>
- <excludes>
- <exclude>*:${project.artifactId}:jar</exclude>
- </excludes>
- </dependencySet>
- </dependencySets>
-
- <files>
- <file>
- <source>src/main/distribution/brz/pdf-as.bat</source>
- <outputDirectory />
- <filtered>true</filtered>
- </file>
- </files>
- <fileSets>
- <fileSet>
- <directory>target</directory>
- <outputDirectory />
- <includes>
- <include>${project.build.finalName}.jar</include>
- </includes>
- </fileSet>
- <fileSet>
- <directory>dok</directory>
- <outputDirectory>doc</outputDirectory>
- <includes>
- <include>*.pdf</include>
- </includes>
- </fileSet>
- </fileSets>
-</assembly>
diff --git a/pdf-as-lib/src/main/assembly/assemble_distribution_cl.xml b/pdf-as-lib/src/main/assembly/assemble_distribution_cl.xml deleted file mode 100644 index e33a6e3..0000000 --- a/pdf-as-lib/src/main/assembly/assemble_distribution_cl.xml +++ /dev/null @@ -1,66 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?>
-<!-- http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html -->
-<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
- <id>distribution_cl</id>
- <formats>
- <format>zip</format>
- </formats>
- <baseDirectory>pdf-as</baseDirectory>
- <includeBaseDirectory>true</includeBaseDirectory>
- <dependencySets>
- <dependencySet>
- <unpack>false</unpack>
- <scope>runtime</scope>
- <outputDirectory>lib</outputDirectory>
- <excludes>
- <exclude>*:${project.artifactId}:jar</exclude>
- </excludes>
- </dependencySet>
- </dependencySets>
- <fileSets>
- <fileSet>
- <directory>src/main/distribution/cl</directory>
- <filtered>true</filtered>
- <outputDirectory/>
- <includes>
- <include>*.bat</include>
- <include>*.sh</include>
- </includes>
- </fileSet>
- <fileSet>
- <directory>target</directory>
- <outputDirectory/>
- <includes>
- <include>${project.build.finalName}.jar</include>
- </includes>
- </fileSet>
- <fileSet>
- <directory>dok/Anwendungsbeschreibung</directory>
- <outputDirectory>doc</outputDirectory>
- <includes>
- <include>PDF-AS-${project.version}-Anwendungsbeschreibung.pdf</include>
- </includes>
- </fileSet>
- <fileSet>
- <directory>dok/Anwendungsbeschreibung/Platzhalter-Beispiele</directory>
- <outputDirectory>doc/Platzhalter-Beispiele</outputDirectory>
- <includes>
- <include>*.jpg</include>
- </includes>
- </fileSet>
- <fileSet>
- <directory>dok/Konfiguration</directory>
- <outputDirectory>doc</outputDirectory>
- <includes>
- <include>*.pdf</include>
- </includes>
- </fileSet>
- <fileSet>
- <directory>dok/Spezifikation/Spezifikation-Layout-Amtssignatur-las-v1.4.0</directory>
- <outputDirectory>doc</outputDirectory>
- <includes>
- <include>Spezifikation-Layout-Amtssignatur-las-v1.4.0.pdf</include>
- </includes>
- </fileSet>
- </fileSets>
-</assembly>
diff --git a/pdf-as-lib/src/main/assembly/assemble_distribution_ws.xml b/pdf-as-lib/src/main/assembly/assemble_distribution_ws.xml deleted file mode 100644 index ff73f9d..0000000 --- a/pdf-as-lib/src/main/assembly/assemble_distribution_ws.xml +++ /dev/null @@ -1,203 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html --> -<assembly> - <id>distribution-ws</id> - <formats> - <format>zip</format> - </formats> - <includeBaseDirectory>false</includeBaseDirectory> - <fileSets> - <fileSet> - <directory>distribution/tomcat/tomcat-5.5.20-standalone</directory> - <outputDirectory>/pdf-as-ws/tomcat</outputDirectory> - <includes> - <include>**/*</include> - </includes> - <excludes> - <exclude>.svn</exclude> - </excludes> - </fileSet> - <fileSet> - <directory>distribution/jdk/1.5.0_06/</directory> - <outputDirectory>/pdf-as-ws/jsdk</outputDirectory> - <includes> - <include>**/*</include> - </includes> - <excludes> - <exclude>.svn</exclude> - </excludes> - </fileSet> - <fileSet> - <directory>webapp</directory> - <outputDirectory>/pdf-as-ws/tomcat/webapps/pdf-as</outputDirectory> - <includes> - <include>**/*</include> - </includes> - <excludes> - <exclude>.svn</exclude> - </excludes> - </fileSet> - <fileSet> - <directory>target</directory> - <outputDirectory>/pdf-as-ws/tomcat/webapps/pdf-as/WEB-INF/lib</outputDirectory> - <includes> - <include>pdf-as*.jar</include> - </includes> - <excludes> - <exclude>.svn</exclude> - </excludes> - </fileSet> - <fileSet> - <directory>distribution/cfg</directory> - <outputDirectory>/pdf-as-ws/tomcat/conf/pdf-as/cfg</outputDirectory> - <includes> - <include>*.properties</include> - </includes> - <excludes> - <exclude>.svn</exclude> - </excludes> - </fileSet> - <fileSet> - <directory>distribution/tomcat</directory> - <outputDirectory>/pdf-as-ws/tomcat/conf/catalina/localhost</outputDirectory> - <includes> - <include>pdf-as.xml</include> - </includes> - <excludes> - <exclude>.svn</exclude> - </excludes> - </fileSet> - - <fileSet> - <directory>distribution/certificates</directory> - <outputDirectory>/pdf-as-ws/tomcat/conf/pdf-as/certificates</outputDirectory> - <includes> - <include>**/*</include> - </includes> - <excludes> - <exclude>.svn</exclude> - </excludes> - </fileSet> - <fileSet> - <directory>distribution/pdfastmp</directory> - <outputDirectory>/pdf-as-ws/tomcat/conf/pdf-as/pdfastmp</outputDirectory> - <includes> - <include>**/*</include> - </includes> - <excludes> - <exclude>.svn</exclude> - </excludes> - </fileSet> - <fileSet> - <directory>distribution/images</directory> - <outputDirectory>/pdf-as-ws/tomcat/conf/pdf-as/images</outputDirectory> - <includes> - <include>**/*</include> - </includes> - <excludes> - <exclude>.svn</exclude> - </excludes> - </fileSet> - <fileSet> - <directory>work/templates</directory> - <outputDirectory>/pdf-as-ws/tomcat/conf/pdf-as/templates</outputDirectory> - <includes> - <include>**/*</include> - </includes> - <excludes> - <exclude>.svn</exclude> - </excludes> - </fileSet> - <fileSet> - <directory>work/licenses</directory> - <outputDirectory>/pdf-as-ws/tomcat/conf/pdf-as/licenses</outputDirectory> - <includes> - <include>**/*</include> - </includes> - <excludes> - <exclude>.svn</exclude> - </excludes> - </fileSet> - - <fileSet> - <directory>distribution/moaspss/moa-spss-1.4.2beta1</directory> - <outputDirectory>/pdf-as-ws/tomcat/webapps</outputDirectory> - <includes> - <include>moa-spss.war</include> - </includes> - <excludes> - <exclude>.svn</exclude> - </excludes> - </fileSet> - <fileSet> - <directory>distribution/moaspss/moa-spss-1.4.2beta1/conf</directory> - <outputDirectory>/pdf-as-ws/tomcat/conf</outputDirectory> - <includes> - <include>**/*</include> - </includes> - <excludes> - <exclude>.svn</exclude> - </excludes> - </fileSet> - <fileSet> - <directory>distribution/moaspss/moa-spss-1.4.2beta1/endorsed</directory> - <outputDirectory>/pdf-as-ws/tomcat/common/endorsed</outputDirectory> - <includes> - <include>**/*</include> - </includes> - <excludes> - <exclude>.svn</exclude> - </excludes> - </fileSet> - <fileSet> - <directory>distribution/moaspss/moa-spss-1.4.2beta1/ext</directory> - <outputDirectory>/pdf-as-ws/tomcat/common/lib</outputDirectory> - <includes> - <include>**/*</include> - </includes> - <excludes> - <exclude>.svn</exclude> - </excludes> - </fileSet> - - - <fileSet> - <directory>distribution/tomcat</directory> - <outputDirectory>/pdf-as-ws/tomcat</outputDirectory> - <includes> - <include>startTomcat.bat</include> - <include>stopTomcat.bat</include>
- <include>favicon.ico</include> - </includes> - </fileSet> - <fileSet> - <directory>distribution/</directory> - <outputDirectory>/pdf-as-ws/tomcat</outputDirectory> - <includes> - <include>Starten PDF-Amtssignatur.bat</include> - <include>Beenden PDF-Amtssignatur.bat</include> - </includes> - </fileSet> - <!--fileSet> - <directory>distribution/doc</directory> - <outputDirectory>/pdf-as-cl</outputDirectory> - <includes> - <include>Demotext.pdf</include> - </includes> - </fileSet--> - </fileSets> - <!--files> - <file> - <source>distribution/scripts/pdf-as.bat</source> - <outputDirectory>/pdf-as-cl</outputDirectory> - <filtered>true</filtered> - </file> - </files--> - <dependencySets> - <dependencySet> - <unpack>false</unpack> - <scope>runtime</scope> - <outputDirectory>/pdf-as-ws/tomcat/webapps/pdf-as/WEB-INF/lib</outputDirectory> - </dependencySet> - </dependencySets> -</assembly> diff --git a/pdf-as-lib/src/main/assembly/assemble_libraries.xml b/pdf-as-lib/src/main/assembly/assemble_libraries.xml deleted file mode 100644 index 446e9ba..0000000 --- a/pdf-as-lib/src/main/assembly/assemble_libraries.xml +++ /dev/null @@ -1,16 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?>
-<!-- http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html -->
-<assembly>
- <id>libraries</id>
- <formats>
- <format>dir</format>
- </formats>
- <includeBaseDirectory>false</includeBaseDirectory>
- <dependencySets>
- <dependencySet>
- <unpack>false</unpack>
- <scope>compile</scope>
- <outputDirectory>/</outputDirectory>
- </dependencySet>
- </dependencySets>
-</assembly>
diff --git a/pdf-as-lib/src/main/assembly/assemble_repository.xml b/pdf-as-lib/src/main/assembly/assemble_repository.xml deleted file mode 100644 index cbfe790..0000000 --- a/pdf-as-lib/src/main/assembly/assemble_repository.xml +++ /dev/null @@ -1,19 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?>
-<!-- http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html -->
-<assembly>
- <id>maven2-repository</id>
- <formats>
- <format>zip</format>
- </formats>
- <includeBaseDirectory>false</includeBaseDirectory>
-
- <repositories>
-
- <repository>
- <includeMetadata>false</includeMetadata>
- <outputDirectory>/</outputDirectory>
- </repository>
-
- </repositories>
-
-</assembly>
diff --git a/pdf-as-lib/src/main/distribution/brz/pdf-as.bat b/pdf-as-lib/src/main/distribution/brz/pdf-as.bat deleted file mode 100644 index 059b977..0000000 --- a/pdf-as-lib/src/main/distribution/brz/pdf-as.bat +++ /dev/null @@ -1,8 +0,0 @@ -@echo off
-
-rem Deploy embedded default configuration to current folder
-rem Note: Configuration is not deployed if it already exists.
-rem java -Dpdf-as.work-dir=. -jar ${project.build.finalName}.jar -ddc
-
-rem Start commandline
-java -Xms128m -Xmx786m -XX:MaxPermSize=256m -Dpdf-as.work-dir=. -jar ${project.build.finalName}.jar %*
diff --git a/pdf-as-lib/src/main/distribution/cl/pdf-as.bat b/pdf-as-lib/src/main/distribution/cl/pdf-as.bat deleted file mode 100644 index 0cadb9a..0000000 --- a/pdf-as-lib/src/main/distribution/cl/pdf-as.bat +++ /dev/null @@ -1,8 +0,0 @@ -@echo off
-
-rem Deploys embedded default configuration to USER_HOME/PDF-AS.
-rem Note: Configuration is not deployed if it already exists.
-java -jar ${project.build.finalName}.jar -ddc
-
-rem Start commandline
-java -Xms128m -Xmx786m -XX:MaxPermSize=256m -jar ${project.build.finalName}.jar %*
diff --git a/pdf-as-lib/src/main/distribution/cl/pdf-as.sh b/pdf-as-lib/src/main/distribution/cl/pdf-as.sh deleted file mode 100644 index f47bc5f..0000000 --- a/pdf-as-lib/src/main/distribution/cl/pdf-as.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash - -# Deploys embedded default configuration to USER_HOME/PDF-AS. -# Note: Configuration is not deployed if it already exists. -java -jar ${project.build.finalName}.jar -ddc - -# Start commandline -java -Xms128m -Xmx786m -XX:MaxPermSize=256m -jar ${project.build.finalName}.jar $@ diff --git a/pdf-as-lib/src/main/distribution/cl/sign.bat b/pdf-as-lib/src/main/distribution/cl/sign.bat deleted file mode 100644 index e25213b..0000000 --- a/pdf-as-lib/src/main/distribution/cl/sign.bat +++ /dev/null @@ -1 +0,0 @@ -call pdf-as.bat -mode sign -sigmode textual -connector bku %1 %2 %3 %4 %5 %6 %7 %8 %9
diff --git a/pdf-as-lib/src/main/distribution/cl/sign.sh b/pdf-as-lib/src/main/distribution/cl/sign.sh deleted file mode 100644 index 410b3fe..0000000 --- a/pdf-as-lib/src/main/distribution/cl/sign.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash - -./pdf-as.sh -mode sign -sigmode textual -connector bku $@ diff --git a/pdf-as-lib/src/site/changes.xml b/pdf-as-lib/src/site/changes.xml deleted file mode 100644 index 4c19e8b..0000000 --- a/pdf-as-lib/src/site/changes.xml +++ /dev/null @@ -1,252 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?>
-<document>
-
- <properties>
- <title>Release History</title>
- </properties>
-
- <body>
-
- <!--
- <release version="major.minor" date="yyyy-MM-dd" description="foo">
- <action dev="foo" type="add|update|fix|remove">foo</action>
- </release>
- -->
-
- <release version="3.1.1-snapshot" date="2010-03-16" description="add">
- <action dev="tknall" type="add">Catching OutOfMemory exceptions, returning appropriate error message/code</action>
- <action dev="tknall" type="fix">Binary signature: bug concerning indirect pdf objects fixed</action>
- <action dev="tknall" type="update">Maven2-repository updated</action>
- <action dev="tknall" type="update">pdfbox/itext projects converted to maven2 projects</action>
- <action dev="tknall" type="update">pdfbox/itext maven2 artifact renamed and version added (see .pom)</action>
- <action dev="tknall" type="remove">old pdfbox/itext libraries removed</action>
- <action dev="tknall" type="add">SignaturePositioning improved (Signature position can be declared by String which is parsed)</action>
- <action dev="tknall" type="add">Some more error codes (Out of memory, Invalid signature position)</action>
- <action dev="tknall" type="add">iText utility for creation of pdf files added</action>
- <action dev="tknall" type="update">ConfigUtils updated (destination of configuration to be extracted can now be chosen)</action>
- <action dev="tknall" type="update">PDFASUtils updated (more tools)</action>
- <action dev="tknall" type="add">WebApplication: Freetext pdf creation implemented</action>
- <action dev="tknall" type="fix">WebApplication: XSS security updates</action>
- </release>
-
- <release version="3.1" date="2010-01-18" description="add">
- <action dev="tknall" type="add">Support for PDF signature handler.</action>
- <action dev="tknall" type="add">Protection of signed documents against inadvertently modification.</action>
- <action dev="tknall" type="update">Revision of configuration (backwards compatibility assured).</action>
- <action dev="tknall" type="fix">Minor bug concerning table format configuration fixed.</action>
- <action dev="tknall" type="add">Support of arbitrary signature/hash algorithms (ACOS04/G3).</action>
- <action dev="tknall" type="add">Evaluation of pdf documents for non-textual objects added.</action>
- <action dev="tknall" type="add">Support for BAIK signatures.</action>
- <action dev="tknall" type="fix">Many minor bugfixes.</action>
- </release>
-
- <release version="3.0.9-20090929" date="2009-10-01" description="bugfix">
- <action dev="tknall" type="fix">WebApplication: Incompatibility to Tomcat 6.x removed. (Now quoting taglib expressions with nested scriptlets.)</action>
- </release>
-
- <release version="3.0.9-20090929" date="2009-09-29" description="bugfix">
- <action dev="tknall" type="fix">Bug concerning text matching algorithm fixed.</action>
- </release>
-
- <release version="3.0.9-20090417" date="2009-05-08" description="subsequent release">
- <action dev="tknall" type="fix">Web application bug concerning text reconstruction from form fixed.</action>
- </release>
-
- <release version="3.0.9-20090417" date="2009-04-17" description="subsequent release">
- <action dev="tknall" type="add">New signature layout for new MOCCA bku integrated (etsi-moc-1.1).</action>
- <action dev="tknall" type="add">New architecture implemented that allows different signature layouts for single types of bkus.</action>
- </release>
-
- <release version="3.0.9-20090319" date="2009-03-26" description="subsequent release">
- <action dev="tknall" type="update">Layout for webapplication adjusted for IE.</action>
- </release>
-
- <release version="3.0.9-20090319" date="2009-03-19" description="subsequent release">
- <action dev="tknall" type="update">Build script for command line version updated.</action>
- <action dev="tknall" type="fix">JavaDoc fixes.</action>
- <action dev="tknall" type="update">Some updates for debugging messages.</action>
- <action dev="tknall" type="update">Parser for MOCCA-CreateXMLSignatureResponses enhanced.</action>
- <action dev="tknall" type="update">Many updates and fixes for the external web app interface.</action>
- <action dev="tknall" type="add">New profile for invisible signatures added.</action>
- </release>
-
- <release version="3.0.9-20090206" date="2009-02-04" description="subsequent release">
- <action dev="tknall" type="fix">Examples for the help screen of the commandline version corrected.</action>
- </release>
-
- <release version="3.0.9-20090203" date="2009-02-04" description="subsequent release">
- <action dev="tknall" type="fix">Minor updates for commandline invokation.</action>
- <action dev="tknall" type="fix">Restored compatibility for old PdfAS.commandline(...) method invokation. This method is used by external tools (Open Office plugin for instance.)</action>
- <action dev="tknall" type="add">Some more log messages (e.g. encoding related issues).</action>
- <action dev="tknall" type="update">Updating web application (in external invocation mode) enhancing support for being used within an iframe.</action>
- <action dev="tknall" type="add">
- Two new (optional) parameters for external invocation mode:
- locale: defines the locale being used for webapp (e.g. locale=de or locale=de_DE),
- invoke-app-error-url: can be used to declare a callback url to the calling web application in order to transfer error messages from pdf-as.
- In case of error pdf-as redirects the user to the error-page-url (if given) providing the error and the cause in url encoded parameters ("error", "cause").
- </action>
- <action dev="tknall" type="update">Formatter for mocca signature params enhanced.</action>
- </release>
-
- <release version="3.0.9-20090129" date="2009-01-29" description="BRZ release">
- <action dev="wprinz" type="add">Added signatureKeyIdentifier to SignParameters in the API, which allows to override the one specified in the profile (MOA Connector only).</action>
- <action dev="wprinz" type="add">Added maven assembly and batch file for BRZ distribution.</action>
- <action dev="wprinz" type="fix">Corrected faulty mime-type argument checking in SignResult constructor.</action>
- </release>
-
- <release version="3.0.8-20090113" date="2009-01-13" description="subsequent release">
- <action dev="tknall" type="update">Switching to itext-2.1.5-rev3628. (itext-1.4.x is regarded as deprecated.)</action>
- <action dev="gfliess" type="update">itext library: minor adjustments for pdf-as</action>
- <action dev="tknall" type="add">Adding new error code (103) for invalid pdfa/1b font configuration.</action>
- <action dev="gfliess" type="update">Minor updates for PDF/A support.</action>
- <action dev="tknall" type="add">Support for local MOCCA CCS added.</action>
- </release>
-
- <release version="3.0.8-20081126" date="2008-11-26" description="subsequent release">
- <action dev="tknall" type="add">Multi language for web application.</action>
- <action dev="tknall" type="fix">Encoding issue for web application fixed by implementing an EncodingFilter.</action>
- <action dev="tknall" type="update">Dynamic sign upload form implemented.</action>
- <action dev="tknall" type="update">Order of input fields for dynamic upload form changed.</action>
- <action dev="tknall" type="add">MOCCA logo added to sign upload form.</action>
- </release>
-
- <release version="3.0.8-20081119" date="2008-09-19" description="subsequent release">
- <action dev="tknall" type="remove">lib-folder removed.</action>
- <action dev="tknall" type="update">Maven2-repository updated.</action>
- <action dev="tknall" type="add">Adding external patched itext (1.4.2 and 2.1.5) and pdfbox libraries.</action>
- <action dev="tknall" type="remove">Removing iText and pdfbox from sources.</action>
- <action dev="tknall" type="remove">Cleaning up certstore removing all certificates except MOA-certificates.</action>
- <action dev="tknall" type="remove">Removing deprecated templates.</action>
- <action dev="tknall" type="update">Correcting default.bku.sign.detached.xml according to Security Layer spec.</action>
- <action dev="tknall" type="update"></action>
- <action dev="tknall" type="add">Adding DejaVuFont.</action>
- <action dev="tknall" type="add">Adding DejaVuFont license.</action>
- <action dev="tknall" type="update">Adding test file for PDF/A. Removing issues.txt.</action>
- <action dev="tknall" type="add">Preparation for multilingual support for web application.</action>
- <action dev="tknall" type="update">Minor updates of configuration.</action>
- <action dev="tknall" type="update">Sitemesh updates.</action>
- <action dev="tknall" type="add">Minor support for TrueType fonts in preparation for PDF/A added.</action>
- </release>
-
- <release version="3.0.7-20080923" date="2008-09-23" description="subsequent release">
- <action dev="tknall" type="remove">Deprecated webapp-folder removed from svn repository.</action>
- <action dev="tknall" type="add">New DefaultConfiguration.zip integrated in order to allow mocca signatures.</action>
- <action dev="tknall" type="fix">Minor bug concerning choice of cce within the web application fixed.</action>
- </release>
-
- <release version="3.0.7-20080916" date="2008-09-16" description="subsequent release">
- <action dev="tknall" type="add">Signature with new online bku MOCCA integrated (new signature device "moc" created).</action>
- <action dev="tknall" type="add">Configuration keys for mocca added.</action>
- <action dev="tknall" type="add">New error codes (371 = signature verification not supported by this connector, 372 = invalid signing time) introduced.</action>
- <action dev="tknall" type="add">Optional check of the signing time for the web application implemented. At signature creation time the signing time is checked for plausibility. This is a workaround for the ITS:mac-linux signing time bug. New configuration key ("signing_time_tolerance") added (applies to web application only) to overcome invalid signing times. A signature is only accepted if its signing time is within a time frame of [current time - signing_time_tolerance, current time + signing_time_tolerance] where signing_time_tolerance is interpreted as seconds.</action>
- <action dev="tzefferer" type="fix">Bugfix: Correct extraction of signatures with wrong signing times implemented. (The order of the signatures is still invalid in case of false signing times.)</action>
- <action dev="tknall" type="add">Optional override of the dynamic creation of the signature retrieval url (locrefcontent) implemented in order to overcome ssl problems (retrieve_signature_data_url_override). Note: Assure that this URL is accessible from the citizen card environment.</action>
- <action dev="tknall" type="fix">Download of signed pdf-file for external application interface adjusted.</action>
- <action dev="tknall" type="add">Verification of mocca signed documents implemented.</action>
- <action dev="tknall" type="add">Retrieval of xml response via multipart implemented (mocca strictly follows security layer spec)</action>
- </release>
-
- <release version="3.0.6-20080715" date="2008-07-15" description="subsequent release">
- <action dev="tknall" type="update">Parsing of PublicAuthority-Flag and PublicAuthority-Code from MOA-VerifyXMLSignatureResponses implemented.</action>
- </release>
-
- <release version="3.0.6-20080616" date="2008-06-16" description="subsequent release">
- <action dev="tknall" type="update">APIDemo updated.</action>
- <action dev="tknall" type="update">(default) configuration updated regarding new configuration keys.</action>
- <action dev="tknall" type="update">Many printStackTraces replaces with logger-messages.</action>
- <action dev="tknall" type="update">Update concerting exclusion of minimal layout profiles for verification.</action>
- <action dev="tknall" type="update">
- Web-Application: New error code (251) introduced: Textual signature of files with no
- extractable textual content (e.g. files that solely contain images) is prevented.
- </action>
- </release>
-
- <release version="3.0.6" date="2008-06-16" description="subsequent release">
- <action dev="wprinz" type="add">Configurable line break tolerance for binary signatures (line_break_tolerance).</action>
- <action dev="wprinz" type="add">The reserved space for a certificate withing the egiz dictionary can be configured (...phlength.certificate=xxxx).</action>
- <action dev="wprinz" type="add">imagescaletofit configuration parameter introduced.</action>
- </release>
-
- <release version="3.0.5" date="2008-06-13" description="subsequent release">
- <action dev="tzefferer" type="update">Detection of incremental updates updated.</action>
- <action dev="tknall" type="fix">Bug fixed. There was an error concerning empty HashInputData parsing a MOA CreateXMLSignatureResponse.</action>
- <action dev="tknall" type="add">Demo source for API usage created.</action>
- <action dev="tknall" type="update">Issue resolved: Prevent signature of empty document which leads to a meaningless error message from the bku.</action>
- </release>
-
- <release version="3.0.5" date="2008-06-12" description="subsequent release">
- <action dev="tknall" type="update">A new check for the existence of a configuration has been implemented. The extraction is skipped if any files or folders would be overwritten. Files like log- or temp-files may exist and do not prevent the deployment of the default configuration.</action>
- </release>
-
- <release version="3.0.5" date="2008-06-11" description="subsequent release">
- <action dev="tknall" type="fix">Serious bug solved. Method storeCertificate tried to fetch a certificate from store before storing it. If not found (within the store resp. via ldap) the certificate was not stored!!!</action>
- </release>
-
- <release version="3.0.5" date="2008-06-10" description="subsequent release">
- <action dev="tknall" type="update">Manual deployment of pdf-as configuration (commandline parameter -ddc) considers the system property pdf-as.work-dir.</action>
- <action dev="tknall" type="update">Internal default configuration updated.</action>
- <action dev="tknall" type="fix">log4.properties within the workdir is now being considered using the api.</action>
- </release>
-
- <release version="3.0.5" date="2008-06-03" description="subsequent release">
- <action dev="wprinz" type="add">
- Support of a minimal signature mark layout for binary signatures added.
- </action>
- <action dev="tknall" type="add">
- Web-Application: Every hardcoded context "pdf-as" has been replaced.
- </action>
- <action dev="tknall" type="add">
- Web-Application: Session is now being invalidated after download of the signed pdf file.
- </action>
- <action dev="tknall" type="add">
- Web-Application: Configuration may be declared via system property "pdf-as.work-dir" or via Servlet-Init-Parameter "work-dir".
- </action>
- <action dev="tknall" type="fix">
- Bug fixed in RetrieveSignatureDataServlet: Response header didn't contain a content length attribute. The ITS Mac BKU rejects those requests.
- </action>
- <action dev="tknall" type="fix">
- Workaround for ITS Mac BKU integrated. A redirect via response does only work if the response contains a valid SL request (e.g. a NullOperationRequest).
- </action>
- <action dev="tknall" type="add">
- API: The configuration folder may be omitted at instantiating the api. Configuration may be set via system property "pdf-as.work-dir". If no configuration is given at all, the current user's home directory is searched for a folder "PDF-AS". If not found a default configuration is created.
- </action>
- <action dev="tknall" type="add">
- If the configuration is explicitely given than the temporary folder is located within the given directory otherwise within the user's temporary directory.
- </action>
- <action dev="tknall" type="add">
- Declaring the configuration folder, replacements for system properties like "${catalina.base}/conf/pdfas" may be used.
- </action>
- </release>
-
- <release version="3.0.4" date="2008-04-24"
- description="first release">
- <action dev="tknall" type="fix">
- Bug fixed: If we have a binary signature, the
- certificate is embedded. So there should be no serial
- number needed within the signature block. PDF-AS stores
- the certificate in the certstore but tries to load the
- certificate via serialnumber and issuername from
- certstore, which fails because of the missing serial
- number.
- </action>
- <action dev="tknall" type="fix">
- Bug fixed: For storage of the certificate in the
- certstore the issuername is taken from the certificate,
- normalized and hashed. The base64 value of the hash is
- used as the directory name. Loading the certificate from
- the certstore, the issuername is taken from the
- signature block, normalized and hashed. Some issuernames
- (with rdns that are not registered) lead to two
- different hash values (one at storage, another at
- retrieval), which leads to a certificate not found
- exception.
- </action>
- <action dev="tknall" type="add">
- PDF-AS library version is logged in order to lighten
- bugfixing.
- </action>
- </release>
-
- </body>
-
-</document>
diff --git a/pdf-as-lib/src/site/checkstyle.xml b/pdf-as-lib/src/site/checkstyle.xml deleted file mode 100644 index 00ae4c9..0000000 --- a/pdf-as-lib/src/site/checkstyle.xml +++ /dev/null @@ -1,109 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?>
-<!--
- This configuration file was written by the eclipse-cs plugin configuration editor
--->
-<!--
-Checkstyle-Configuration: Sun Checks (Eclipse) brontes
-Description:
-
--->
-<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.2//EN" "http://www.puppycrawl.com/dtds/configuration_1_2.dtd">
-<module name="Checker">
- <property name="severity" value="warning"/>
- <module name="TreeWalker">
- <property name="tabWidth" value="4"/>
- <module name="JavadocMethod">
- <property name="severity" value="ignore"/>
- </module>
- <module name="JavadocType">
- <property name="severity" value="ignore"/>
- </module>
- <module name="JavadocVariable">
- <property name="severity" value="ignore"/>
- </module>
- <module name="JavadocStyle"/>
- <module name="ConstantName"/>
- <module name="LocalFinalVariableName"/>
- <module name="LocalVariableName"/>
- <module name="MemberName"/>
- <module name="MethodName"/>
- <module name="PackageName"/>
- <module name="ParameterName"/>
- <module name="StaticVariableName"/>
- <module name="TypeName"/>
- <module name="AvoidStarImport"/>
- <module name="IllegalImport"/>
- <module name="RedundantImport"/>
- <module name="UnusedImports"/>
- <module name="FileLength"/>
- <module name="MethodLength"/>
- <module name="ParameterNumber"/>
- <module name="EmptyForIteratorPad"/>
- <module name="MethodParamPad"/>
- <module name="NoWhitespaceAfter">
- <property name="tokens" value="BNOT,DEC,DOT,INC,LNOT,UNARY_MINUS,UNARY_PLUS"/>
- </module>
- <module name="NoWhitespaceBefore"/>
- <module name="OperatorWrap"/>
- <module name="ParenPad"/>
- <module name="TypecastParenPad"/>
- <module name="TabCharacter">
- <property name="severity" value="ignore"/>
- </module>
- <module name="WhitespaceAfter"/>
- <module name="WhitespaceAround">
- <property name="tokens" value="ASSIGN,BAND,BAND_ASSIGN,BOR,BOR_ASSIGN,BSR,BSR_ASSIGN,BXOR,BXOR_ASSIGN,COLON,DIV,DIV_ASSIGN,EQUAL,GE,GT,LAND,LCURLY,LE,LITERAL_ASSERT,LITERAL_CATCH,LITERAL_DO,LITERAL_ELSE,LITERAL_FINALLY,LITERAL_FOR,LITERAL_IF,LITERAL_RETURN,LITERAL_SYNCHRONIZED,LITERAL_TRY,LITERAL_WHILE,LOR,LT,MINUS,MINUS_ASSIGN,MOD,MOD_ASSIGN,NOT_EQUAL,PLUS,PLUS_ASSIGN,QUESTION,RCURLY,SL,SLIST,SL_ASSIGN,SR,SR_ASSIGN,STAR,STAR_ASSIGN,LITERAL_ASSERT,TYPE_EXTENSION_AND,WILDCARD_TYPE"/>
- </module>
- <module name="ModifierOrder"/>
- <module name="RedundantModifier"/>
- <module name="AvoidNestedBlocks"/>
- <module name="EmptyBlock"/>
- <module name="LeftCurly"/>
- <module name="NeedBraces"/>
- <module name="RightCurly"/>
- <module name="AvoidInlineConditionals">
- <property name="severity" value="ignore"/>
- </module>
- <module name="DoubleCheckedLocking"/>
- <module name="EmptyStatement"/>
- <module name="EqualsHashCode"/>
- <module name="HiddenField">
- <property name="severity" value="ignore"/>
- </module>
- <module name="IllegalInstantiation"/>
- <module name="InnerAssignment"/>
- <module name="MagicNumber"/>
- <module name="MissingSwitchDefault"/>
- <module name="RedundantThrows"/>
- <module name="SimplifyBooleanExpression"/>
- <module name="SimplifyBooleanReturn"/>
- <module name="DesignForExtension">
- <property name="severity" value="ignore"/>
- </module>
- <module name="FinalClass"/>
- <module name="HideUtilityClassConstructor"/>
- <module name="InterfaceIsType"/>
- <module name="VisibilityModifier"/>
- <module name="ArrayTypeStyle"/>
- <module name="FinalParameters">
- <property name="severity" value="ignore"/>
- </module>
- <module name="GenericIllegalRegexp">
- <property name="severity" value="ignore"/>
- <property name="format" value="\s+$"/>
- <property name="message" value="Line has trailing spaces."/>
- </module>
- <module name="TodoComment">
- <property name="severity" value="ignore"/>
- </module>
- <module name="UpperEll"/>
- <module name="LineLength">
- <property name="severity" value="ignore"/>
- <property name="max" value="100"/>
- <property name="tabWidth" value="3"/>
- </module>
- </module>
- <module name="PackageHtml"/>
- <module name="NewlineAtEndOfFile"/>
- <module name="Translation"/>
-</module>
|