From b7f3ed77f614672e8fb57ec6fb9f8ebcd0221b14 Mon Sep 17 00:00:00 2001 From: mcentner Date: Mon, 27 Aug 2007 13:21:57 +0000 Subject: Copied spss/handbook/clients to the new location for the mavenized build. git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@965 d688527b-c9ab-4aba-bd8d-4036d912da1d --- .../commons-discovery-0.2/commons-discovery.jar | Bin 0 -> 71442 bytes .../commons-logging-1.0.4/commons-logging-api.jar | Bin 0 -> 26202 bytes .../lib/commons-logging-1.0.4/commons-logging.jar | Bin 0 -> 38015 bytes .../iaik-moa-20070503/full/iaik_Pkcs11Provider.jar | Bin 0 -> 335169 bytes .../iaik-moa-20070503/full/iaik_Pkcs11Wrapper.jar | Bin 0 -> 257600 bytes .../api/lib/iaik-moa-20070503/full/iaik_cms.jar | Bin 0 -> 285185 bytes .../api/lib/iaik-moa-20070503/full/iaik_ecc.jar | Bin 0 -> 127014 bytes .../api/lib/iaik-moa-20070503/full/iaik_ixsil.jar | Bin 0 -> 204092 bytes .../lib/iaik-moa-20070503/full/iaik_jce_full.jar | Bin 0 -> 828817 bytes .../lib/iaik-moa-20070503/full/iaik_moa_full.jar | Bin 0 -> 682332 bytes .../full/linux/libpkcs11wrapper.so | Bin 0 -> 113226 bytes .../full/linux_x64/libpkcs11wrapper.so | Bin 0 -> 119858 bytes .../full/signed/iaik_Pkcs11Provider.jar | Bin 0 -> 350831 bytes .../lib/iaik-moa-20070503/full/signed/iaik_ecc.jar | Bin 0 -> 134782 bytes .../full/signed/iaik_jce_full.jar | Bin 0 -> 837275 bytes .../full/solaris_sparc/libpkcs11wrapper.so | Bin 0 -> 151944 bytes .../full/solaris_sparcv9/libpkcs11wrapper.so | Bin 0 -> 211040 bytes .../iaik-moa-20070503/full/win32/pkcs11wrapper.dll | Bin 0 -> 98304 bytes .../full/wince30arm/pkcs11wrapper.dll | Bin 0 -> 67584 bytes .../iaik-moa-20070801/full/iaik_Pkcs11Wrapper.jar | Bin 0 -> 257600 bytes .../api/lib/iaik-moa-20070801/full/iaik_cms.jar | Bin 0 -> 285185 bytes .../api/lib/iaik-moa-20070801/full/iaik_ixsil.jar | Bin 0 -> 204098 bytes .../lib/iaik-moa-20070801/full/iaik_moa_full.jar | Bin 0 -> 692493 bytes .../full/linux/libpkcs11wrapper.so | Bin 0 -> 113226 bytes .../full/linux_x64/libpkcs11wrapper.so | Bin 0 -> 119858 bytes .../full/signed/iaik_Pkcs11Provider.jar | Bin 0 -> 350831 bytes .../lib/iaik-moa-20070801/full/signed/iaik_ecc.jar | Bin 0 -> 134782 bytes .../full/signed/iaik_jce_full.jar | Bin 0 -> 837275 bytes .../full/solaris_sparc/libpkcs11wrapper.so | Bin 0 -> 151944 bytes .../full/solaris_sparcv9/libpkcs11wrapper.so | Bin 0 -> 211040 bytes .../iaik-moa-20070801/full/win32/pkcs11wrapper.dll | Bin 0 -> 98304 bytes .../full/wince30arm/pkcs11wrapper.dll | Bin 0 -> 67584 bytes .../clients/api/lib/jaxen-1.0/jaxen-core.jar | Bin 0 -> 160967 bytes .../clients/api/lib/jaxen-1.0/jaxen-dom.jar | Bin 0 -> 13707 bytes .../handbook/clients/api/lib/jaxen-1.0/saxpath.jar | Bin 0 -> 23563 bytes spss/handbook/clients/api/lib/jaxp-1.2_01/dom.jar | Bin 0 -> 26710 bytes .../clients/api/lib/jaxp-1.2_01/jaxp-api.jar | Bin 0 -> 27052 bytes spss/handbook/clients/api/lib/jaxp-1.2_01/sax.jar | Bin 0 -> 26206 bytes .../clients/api/lib/log4j-1.2.7/log4j-1.2.7.jar | Bin 0 -> 350677 bytes .../api/lib/postgres-jdbc2-7.3/pg73jdbc2.jar | Bin 0 -> 163980 bytes .../clients/api/lib/xalan-j-2.5.1/xalan.jar | Bin 0 -> 2907319 bytes .../clients/api/signatures/SimpleSignature.xml | 23 ++++ .../handbook/clients/api/CreateXMLSignature.java | 130 ++++++++++++++++++ .../handbook/clients/api/VerifyXMLSignature.java | 147 +++++++++++++++++++++ 44 files changed, 300 insertions(+) create mode 100644 spss/handbook/clients/api/lib/commons-discovery-0.2/commons-discovery.jar create mode 100644 spss/handbook/clients/api/lib/commons-logging-1.0.4/commons-logging-api.jar create mode 100644 spss/handbook/clients/api/lib/commons-logging-1.0.4/commons-logging.jar create mode 100644 spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_Pkcs11Provider.jar create mode 100644 spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_Pkcs11Wrapper.jar create mode 100644 spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_cms.jar create mode 100644 spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_ecc.jar create mode 100644 spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_ixsil.jar create mode 100644 spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_jce_full.jar create mode 100644 spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_moa_full.jar create mode 100644 spss/handbook/clients/api/lib/iaik-moa-20070503/full/linux/libpkcs11wrapper.so create mode 100644 spss/handbook/clients/api/lib/iaik-moa-20070503/full/linux_x64/libpkcs11wrapper.so create mode 100644 spss/handbook/clients/api/lib/iaik-moa-20070503/full/signed/iaik_Pkcs11Provider.jar create mode 100644 spss/handbook/clients/api/lib/iaik-moa-20070503/full/signed/iaik_ecc.jar create mode 100644 spss/handbook/clients/api/lib/iaik-moa-20070503/full/signed/iaik_jce_full.jar create mode 100644 spss/handbook/clients/api/lib/iaik-moa-20070503/full/solaris_sparc/libpkcs11wrapper.so create mode 100644 spss/handbook/clients/api/lib/iaik-moa-20070503/full/solaris_sparcv9/libpkcs11wrapper.so create mode 100644 spss/handbook/clients/api/lib/iaik-moa-20070503/full/win32/pkcs11wrapper.dll create mode 100644 spss/handbook/clients/api/lib/iaik-moa-20070503/full/wince30arm/pkcs11wrapper.dll create mode 100644 spss/handbook/clients/api/lib/iaik-moa-20070801/full/iaik_Pkcs11Wrapper.jar create mode 100644 spss/handbook/clients/api/lib/iaik-moa-20070801/full/iaik_cms.jar create mode 100644 spss/handbook/clients/api/lib/iaik-moa-20070801/full/iaik_ixsil.jar create mode 100644 spss/handbook/clients/api/lib/iaik-moa-20070801/full/iaik_moa_full.jar create mode 100644 spss/handbook/clients/api/lib/iaik-moa-20070801/full/linux/libpkcs11wrapper.so create mode 100644 spss/handbook/clients/api/lib/iaik-moa-20070801/full/linux_x64/libpkcs11wrapper.so create mode 100644 spss/handbook/clients/api/lib/iaik-moa-20070801/full/signed/iaik_Pkcs11Provider.jar create mode 100644 spss/handbook/clients/api/lib/iaik-moa-20070801/full/signed/iaik_ecc.jar create mode 100644 spss/handbook/clients/api/lib/iaik-moa-20070801/full/signed/iaik_jce_full.jar create mode 100644 spss/handbook/clients/api/lib/iaik-moa-20070801/full/solaris_sparc/libpkcs11wrapper.so create mode 100644 spss/handbook/clients/api/lib/iaik-moa-20070801/full/solaris_sparcv9/libpkcs11wrapper.so create mode 100644 spss/handbook/clients/api/lib/iaik-moa-20070801/full/win32/pkcs11wrapper.dll create mode 100644 spss/handbook/clients/api/lib/iaik-moa-20070801/full/wince30arm/pkcs11wrapper.dll create mode 100644 spss/handbook/clients/api/lib/jaxen-1.0/jaxen-core.jar create mode 100644 spss/handbook/clients/api/lib/jaxen-1.0/jaxen-dom.jar create mode 100644 spss/handbook/clients/api/lib/jaxen-1.0/saxpath.jar create mode 100644 spss/handbook/clients/api/lib/jaxp-1.2_01/dom.jar create mode 100644 spss/handbook/clients/api/lib/jaxp-1.2_01/jaxp-api.jar create mode 100644 spss/handbook/clients/api/lib/jaxp-1.2_01/sax.jar create mode 100644 spss/handbook/clients/api/lib/log4j-1.2.7/log4j-1.2.7.jar create mode 100644 spss/handbook/clients/api/lib/postgres-jdbc2-7.3/pg73jdbc2.jar create mode 100644 spss/handbook/clients/api/lib/xalan-j-2.5.1/xalan.jar create mode 100644 spss/handbook/clients/api/signatures/SimpleSignature.xml create mode 100644 spss/handbook/clients/api/src/at/gv/egovernment/moa/spss/handbook/clients/api/CreateXMLSignature.java create mode 100644 spss/handbook/clients/api/src/at/gv/egovernment/moa/spss/handbook/clients/api/VerifyXMLSignature.java (limited to 'spss/handbook/clients/api') diff --git a/spss/handbook/clients/api/lib/commons-discovery-0.2/commons-discovery.jar b/spss/handbook/clients/api/lib/commons-discovery-0.2/commons-discovery.jar new file mode 100644 index 000000000..b88554847 Binary files /dev/null and b/spss/handbook/clients/api/lib/commons-discovery-0.2/commons-discovery.jar differ diff --git a/spss/handbook/clients/api/lib/commons-logging-1.0.4/commons-logging-api.jar b/spss/handbook/clients/api/lib/commons-logging-1.0.4/commons-logging-api.jar new file mode 100644 index 000000000..ade9a13c7 Binary files /dev/null and b/spss/handbook/clients/api/lib/commons-logging-1.0.4/commons-logging-api.jar differ diff --git a/spss/handbook/clients/api/lib/commons-logging-1.0.4/commons-logging.jar b/spss/handbook/clients/api/lib/commons-logging-1.0.4/commons-logging.jar new file mode 100644 index 000000000..b73a80fab Binary files /dev/null and b/spss/handbook/clients/api/lib/commons-logging-1.0.4/commons-logging.jar differ diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_Pkcs11Provider.jar b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_Pkcs11Provider.jar new file mode 100644 index 000000000..af39b42b1 Binary files /dev/null and b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_Pkcs11Provider.jar differ diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_Pkcs11Wrapper.jar b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_Pkcs11Wrapper.jar new file mode 100644 index 000000000..43342ef7c Binary files /dev/null and b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_Pkcs11Wrapper.jar differ diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_cms.jar b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_cms.jar new file mode 100644 index 000000000..7264a68f3 Binary files /dev/null and b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_cms.jar differ diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_ecc.jar b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_ecc.jar new file mode 100644 index 000000000..4cd73391d Binary files /dev/null and b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_ecc.jar differ diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_ixsil.jar b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_ixsil.jar new file mode 100644 index 000000000..5279f2247 Binary files /dev/null and b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_ixsil.jar differ diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_jce_full.jar b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_jce_full.jar new file mode 100644 index 000000000..fe14dbb2a Binary files /dev/null and b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_jce_full.jar differ diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_moa_full.jar b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_moa_full.jar new file mode 100644 index 000000000..539988fba Binary files /dev/null and b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_moa_full.jar differ diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070503/full/linux/libpkcs11wrapper.so b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/linux/libpkcs11wrapper.so new file mode 100644 index 000000000..11852511b Binary files /dev/null and b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/linux/libpkcs11wrapper.so differ diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070503/full/linux_x64/libpkcs11wrapper.so b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/linux_x64/libpkcs11wrapper.so new file mode 100644 index 000000000..393946053 Binary files /dev/null and b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/linux_x64/libpkcs11wrapper.so differ diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070503/full/signed/iaik_Pkcs11Provider.jar b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/signed/iaik_Pkcs11Provider.jar new file mode 100644 index 000000000..a348db04e Binary files /dev/null and b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/signed/iaik_Pkcs11Provider.jar differ diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070503/full/signed/iaik_ecc.jar b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/signed/iaik_ecc.jar new file mode 100644 index 000000000..b8a4f190b Binary files /dev/null and b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/signed/iaik_ecc.jar differ diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070503/full/signed/iaik_jce_full.jar b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/signed/iaik_jce_full.jar new file mode 100644 index 000000000..7288bc39d Binary files /dev/null and b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/signed/iaik_jce_full.jar differ diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070503/full/solaris_sparc/libpkcs11wrapper.so b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/solaris_sparc/libpkcs11wrapper.so new file mode 100644 index 000000000..0b19f10c1 Binary files /dev/null and b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/solaris_sparc/libpkcs11wrapper.so differ diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070503/full/solaris_sparcv9/libpkcs11wrapper.so b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/solaris_sparcv9/libpkcs11wrapper.so new file mode 100644 index 000000000..11f928b0b Binary files /dev/null and b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/solaris_sparcv9/libpkcs11wrapper.so differ diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070503/full/win32/pkcs11wrapper.dll b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/win32/pkcs11wrapper.dll new file mode 100644 index 000000000..3789b8d7a Binary files /dev/null and b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/win32/pkcs11wrapper.dll differ diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070503/full/wince30arm/pkcs11wrapper.dll b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/wince30arm/pkcs11wrapper.dll new file mode 100644 index 000000000..d98e48d80 Binary files /dev/null and b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/wince30arm/pkcs11wrapper.dll differ diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070801/full/iaik_Pkcs11Wrapper.jar b/spss/handbook/clients/api/lib/iaik-moa-20070801/full/iaik_Pkcs11Wrapper.jar new file mode 100644 index 000000000..43342ef7c Binary files /dev/null and b/spss/handbook/clients/api/lib/iaik-moa-20070801/full/iaik_Pkcs11Wrapper.jar differ diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070801/full/iaik_cms.jar b/spss/handbook/clients/api/lib/iaik-moa-20070801/full/iaik_cms.jar new file mode 100644 index 000000000..7264a68f3 Binary files /dev/null and b/spss/handbook/clients/api/lib/iaik-moa-20070801/full/iaik_cms.jar differ diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070801/full/iaik_ixsil.jar b/spss/handbook/clients/api/lib/iaik-moa-20070801/full/iaik_ixsil.jar new file mode 100644 index 000000000..003df0066 Binary files /dev/null and b/spss/handbook/clients/api/lib/iaik-moa-20070801/full/iaik_ixsil.jar differ diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070801/full/iaik_moa_full.jar b/spss/handbook/clients/api/lib/iaik-moa-20070801/full/iaik_moa_full.jar new file mode 100644 index 000000000..35ffc2d06 Binary files /dev/null and b/spss/handbook/clients/api/lib/iaik-moa-20070801/full/iaik_moa_full.jar differ diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070801/full/linux/libpkcs11wrapper.so b/spss/handbook/clients/api/lib/iaik-moa-20070801/full/linux/libpkcs11wrapper.so new file mode 100644 index 000000000..11852511b Binary files /dev/null and b/spss/handbook/clients/api/lib/iaik-moa-20070801/full/linux/libpkcs11wrapper.so differ diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070801/full/linux_x64/libpkcs11wrapper.so b/spss/handbook/clients/api/lib/iaik-moa-20070801/full/linux_x64/libpkcs11wrapper.so new file mode 100644 index 000000000..393946053 Binary files /dev/null and b/spss/handbook/clients/api/lib/iaik-moa-20070801/full/linux_x64/libpkcs11wrapper.so differ diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070801/full/signed/iaik_Pkcs11Provider.jar b/spss/handbook/clients/api/lib/iaik-moa-20070801/full/signed/iaik_Pkcs11Provider.jar new file mode 100644 index 000000000..a348db04e Binary files /dev/null and b/spss/handbook/clients/api/lib/iaik-moa-20070801/full/signed/iaik_Pkcs11Provider.jar differ diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070801/full/signed/iaik_ecc.jar b/spss/handbook/clients/api/lib/iaik-moa-20070801/full/signed/iaik_ecc.jar new file mode 100644 index 000000000..b8a4f190b Binary files /dev/null and b/spss/handbook/clients/api/lib/iaik-moa-20070801/full/signed/iaik_ecc.jar differ diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070801/full/signed/iaik_jce_full.jar b/spss/handbook/clients/api/lib/iaik-moa-20070801/full/signed/iaik_jce_full.jar new file mode 100644 index 000000000..7288bc39d Binary files /dev/null and b/spss/handbook/clients/api/lib/iaik-moa-20070801/full/signed/iaik_jce_full.jar differ diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070801/full/solaris_sparc/libpkcs11wrapper.so b/spss/handbook/clients/api/lib/iaik-moa-20070801/full/solaris_sparc/libpkcs11wrapper.so new file mode 100644 index 000000000..0b19f10c1 Binary files /dev/null and b/spss/handbook/clients/api/lib/iaik-moa-20070801/full/solaris_sparc/libpkcs11wrapper.so differ diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070801/full/solaris_sparcv9/libpkcs11wrapper.so b/spss/handbook/clients/api/lib/iaik-moa-20070801/full/solaris_sparcv9/libpkcs11wrapper.so new file mode 100644 index 000000000..11f928b0b Binary files /dev/null and b/spss/handbook/clients/api/lib/iaik-moa-20070801/full/solaris_sparcv9/libpkcs11wrapper.so differ diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070801/full/win32/pkcs11wrapper.dll b/spss/handbook/clients/api/lib/iaik-moa-20070801/full/win32/pkcs11wrapper.dll new file mode 100644 index 000000000..3789b8d7a Binary files /dev/null and b/spss/handbook/clients/api/lib/iaik-moa-20070801/full/win32/pkcs11wrapper.dll differ diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070801/full/wince30arm/pkcs11wrapper.dll b/spss/handbook/clients/api/lib/iaik-moa-20070801/full/wince30arm/pkcs11wrapper.dll new file mode 100644 index 000000000..d98e48d80 Binary files /dev/null and b/spss/handbook/clients/api/lib/iaik-moa-20070801/full/wince30arm/pkcs11wrapper.dll differ diff --git a/spss/handbook/clients/api/lib/jaxen-1.0/jaxen-core.jar b/spss/handbook/clients/api/lib/jaxen-1.0/jaxen-core.jar new file mode 100644 index 000000000..e52bf679c Binary files /dev/null and b/spss/handbook/clients/api/lib/jaxen-1.0/jaxen-core.jar differ diff --git a/spss/handbook/clients/api/lib/jaxen-1.0/jaxen-dom.jar b/spss/handbook/clients/api/lib/jaxen-1.0/jaxen-dom.jar new file mode 100644 index 000000000..1a9926357 Binary files /dev/null and b/spss/handbook/clients/api/lib/jaxen-1.0/jaxen-dom.jar differ diff --git a/spss/handbook/clients/api/lib/jaxen-1.0/saxpath.jar b/spss/handbook/clients/api/lib/jaxen-1.0/saxpath.jar new file mode 100644 index 000000000..2b43955ba Binary files /dev/null and b/spss/handbook/clients/api/lib/jaxen-1.0/saxpath.jar differ diff --git a/spss/handbook/clients/api/lib/jaxp-1.2_01/dom.jar b/spss/handbook/clients/api/lib/jaxp-1.2_01/dom.jar new file mode 100644 index 000000000..f91f80a8b Binary files /dev/null and b/spss/handbook/clients/api/lib/jaxp-1.2_01/dom.jar differ diff --git a/spss/handbook/clients/api/lib/jaxp-1.2_01/jaxp-api.jar b/spss/handbook/clients/api/lib/jaxp-1.2_01/jaxp-api.jar new file mode 100644 index 000000000..7a3295ee6 Binary files /dev/null and b/spss/handbook/clients/api/lib/jaxp-1.2_01/jaxp-api.jar differ diff --git a/spss/handbook/clients/api/lib/jaxp-1.2_01/sax.jar b/spss/handbook/clients/api/lib/jaxp-1.2_01/sax.jar new file mode 100644 index 000000000..9ffb844e5 Binary files /dev/null and b/spss/handbook/clients/api/lib/jaxp-1.2_01/sax.jar differ diff --git a/spss/handbook/clients/api/lib/log4j-1.2.7/log4j-1.2.7.jar b/spss/handbook/clients/api/lib/log4j-1.2.7/log4j-1.2.7.jar new file mode 100644 index 000000000..1595a56ef Binary files /dev/null and b/spss/handbook/clients/api/lib/log4j-1.2.7/log4j-1.2.7.jar differ diff --git a/spss/handbook/clients/api/lib/postgres-jdbc2-7.3/pg73jdbc2.jar b/spss/handbook/clients/api/lib/postgres-jdbc2-7.3/pg73jdbc2.jar new file mode 100644 index 000000000..8bf46dd8e Binary files /dev/null and b/spss/handbook/clients/api/lib/postgres-jdbc2-7.3/pg73jdbc2.jar differ diff --git a/spss/handbook/clients/api/lib/xalan-j-2.5.1/xalan.jar b/spss/handbook/clients/api/lib/xalan-j-2.5.1/xalan.jar new file mode 100644 index 000000000..44d4d094d Binary files /dev/null and b/spss/handbook/clients/api/lib/xalan-j-2.5.1/xalan.jar differ diff --git a/spss/handbook/clients/api/signatures/SimpleSignature.xml b/spss/handbook/clients/api/signatures/SimpleSignature.xml new file mode 100644 index 000000000..9ecd215c1 --- /dev/null +++ b/spss/handbook/clients/api/signatures/SimpleSignature.xml @@ -0,0 +1,23 @@ + +tLODyeiWFbAkQKwhrR23jtcgu4k=VEjXB6+geUL16oTPDVx5lcQliGl/oyVobug3BVxVwhu8CU7WK65moTcTuo/CL2hQMIID+DCCA2WgAwIBAgIBCTAJBgUrDgMCHQUAMH8xCzAJBgNVBAYTAkFUMSwwKgYD +VQQKEyNTdGFic3RlbGxlIElLVC1TdHJhdGVnaWUgZGVzIEJ1bmRlczEeMBwGA1UE +CxMVVGVjaG5payB1bmQgU3RhbmRhcmRzMSIwIAYDVQQDExlUZXN0IENBIC0gU2ln +bmF0dXJkaWVuc3RlMB4XDTA0MDgwNDA4MjM0OFoXDTA3MDgwNDA4MjM0OFowgZgx +CzAJBgNVBAYTAkFUMS0wKwYDVQQKEyRTdGFic3N0ZWxsZSBJS1QtU3RyYXRlZ2ll +IGRlcyBCdW5kZXMxHjAcBgNVBAsTFVRlY2huaWsgdW5kIFN0YW5kYXJkczE6MDgG +A1UEAxMxVGVzdDogU2lnbmF0dXJkaWVuc3QgYWxsZXIgS3VuZGVuOiBFQ0RTQSAo +UDE5MnYxKTCB8zCBvAYHKoZIzj0CATCBsAIBATAkBgcqhkjOPQEBAhkA//////// +/////////////v//////////MDQEGP////////////////////7//////////AQY +ZCEFGeWcgOcPp+mrciQwSf643uzBRrmxBDEEGI2oDrAwkPZ8vyDrQ6GIAPT/Cv2C +/xASBxkrlf/I2nhjEBHtayTN1XP5d6EeeUgRAhkA////////////////md74NhRr +ybG00igxAgEBAzIABNHWY9lQOE1zgmpcpjTg2WIg6qgEsGhpXELPinJoMPDVheTv +2BZPG42YJsNfvWgC06OCARwwggEYMA4GA1UdDwEB/wQEAwIGwDAMBgNVHRMBAf8E +AjAAMB0GA1UdDgQWBBRHH5EXnrWosCmIa+JyEM5seMxFVzBdBgNVHSAEVjBUMFIG +DCsGAQQBlRIBAgMBATBCMEAGCCsGAQUFBwICMDQaMkRpZXNlcyBaZXJ0aWZpa2F0 +IGlzdCBudXIgZvxyIFRlc3R6d2Vja2UgZ2VlaWduZXQuMEMGA1UdHwQ8MDowOKA2 +oDSGMmh0dHA6Ly9sYWJzLmNpby5ndi5hdC90ZW1wL2NybHMvc2lnbmF0dXJkaWVu +c3QuY3JsMBQGByooAAoBAQEECQwHQktBLUlLVDAfBgNVHSMEGDAWgBRAl0P5fWaw +vf59+uxGcYY9wffZPTAJBgUrDgMCHQUAA4GBAIMKUsnajgfBtpHeDdMdQMLA8fdt +lluezDOM78WYYSFURP04QZk5iHkShzptgZCF5Y/T4an3dC3SnytL67LJvEoKUyja +iTMLo7650xRTvAjTaMJ+nly/wTRYJKplOLXKWj3WwfObMHXdsDE8NJmpJSRE7Sw7 ++tj+UiTiNNSaXirqDiese Daten werden signiert. \ No newline at end of file diff --git a/spss/handbook/clients/api/src/at/gv/egovernment/moa/spss/handbook/clients/api/CreateXMLSignature.java b/spss/handbook/clients/api/src/at/gv/egovernment/moa/spss/handbook/clients/api/CreateXMLSignature.java new file mode 100644 index 000000000..2534e4913 --- /dev/null +++ b/spss/handbook/clients/api/src/at/gv/egovernment/moa/spss/handbook/clients/api/CreateXMLSignature.java @@ -0,0 +1,130 @@ +package at.gv.egovernment.moa.spss.handbook.clients.api; + +import java.io.ByteArrayInputStream; +import java.util.ArrayList; +import java.util.List; + +import org.w3c.dom.Element; + +import at.gv.egovernment.moa.spss.api.SPSSFactory; +import at.gv.egovernment.moa.spss.api.SignatureCreationService; +import at.gv.egovernment.moa.spss.api.common.Content; +import at.gv.egovernment.moa.spss.api.common.MetaInfo; +import at.gv.egovernment.moa.spss.api.xmlsign.CreateTransformsInfo; +import at.gv.egovernment.moa.spss.api.xmlsign.CreateTransformsInfoProfile; +import at.gv.egovernment.moa.spss.api.xmlsign.CreateXMLSignatureRequest; +import at.gv.egovernment.moa.spss.api.xmlsign.CreateXMLSignatureResponse; +import at.gv.egovernment.moa.spss.api.xmlsign.DataObjectInfo; +import at.gv.egovernment.moa.spss.api.xmlsign.SignatureEnvironmentResponse; +import at.gv.egovernment.moa.spss.api.xmlsign.SingleSignatureInfo; +import at.gv.egovernment.moa.util.DOMUtils; + +/** + * Dieses einfache Beispiel demonstriert grundlegend den Gebrauch der API von MOA SP/SS. Es wird damit eine + * einfach aufgebaute XML-Signatur erzeugt. + */ +public class CreateXMLSignature +{ + /** + * Methode main. + * + * Enthält beispielhaften Code zum grundlegenden Gebrauch der API von MOA SP/SS. Es wird damit eine + * einfach aufgebaute XML-Signatur erzeugt. + * + * ACHTUNG: Stellen Sie bei Verwendung von J2SE 1.4.x bzw. 5.x sicher, dass Sie die System-Property + * java.endorsed.dirs auf jenes Verzeichnis gesetzt haben, in dem sich die XPath- + * und XSLT-Bibliothek Xalan-J befindet. + * + * @param args + * + * @throws Exception Sollten Fehler auftreten werden die Fehler an die Java-VM weitergeleitet. + */ + public static void main(String[] args) throws Exception + { + // Setzen der System-Properties + init(args); + + // Serverfunktionshandler instanzieren + SPSSFactory spf = SPSSFactory.getInstance(); + + // Zu signierende Daten in ein Contentobjekt einbinden (die Daten werden hier explizit angegeben, + // sollen aber in der Signatur mittels URL "http://uri.data.org" referenziert werden + byte[] data = "Diese Daten werden signiert.".getBytes("UTF-8"); + ByteArrayInputStream bis = new ByteArrayInputStream(data); + Content cont = spf.createContent(bis, null); + + // Metainformationen zu den zu signierenden Daten erstellen + MetaInfo mi = spf.createMetaInfo("text/plain", null, null, null); + + // Transformationen erstellen (hier werden keine Transformationen angewandt) + CreateTransformsInfo cti = spf.createCreateTransformsInfo(null, mi); + CreateTransformsInfoProfile ct = spf.createCreateTransformsInfoProfile(cti, null); + + // Datenobjekt aufbauen + DataObjectInfo doi = spf.createDataObjectInfo(DataObjectInfo.STRUCTURE_ENVELOPING, false, cont, ct); + + // Erstellen eines SingleSignatureInfo-Containers + // Enthält alle Angaben zur Erstellung *einer* Signatur + List dataobjectinfolist = new ArrayList(); + dataobjectinfolist.add(doi); + SingleSignatureInfo ssi = spf.createSingleSignatureInfo(dataobjectinfolist, null, false); + + // Erstellen des Request-Objekts (Schlüsselbezeichner, Liste von SingleSignatureInfo-Containern) + List singlesignatureinfolist = new ArrayList(); + singlesignatureinfolist.add(ssi); + CreateXMLSignatureRequest cxsreq = spf.createCreateXMLSignatureRequest("KG_allgemein", + singlesignatureinfolist); + + // Signatureerstellungsservice instanzieren und aufrufen + SignatureCreationService scs = SignatureCreationService.getInstance(); + CreateXMLSignatureResponse cxsres = scs.createXMLSignature(cxsreq); + + // Response auswerten + List elements = cxsres.getResponseElements(); + SignatureEnvironmentResponse ser = (SignatureEnvironmentResponse) elements.get(0); + + // Auswertung des ersten (und einzigen) SignatureEnvironmentResponse-Containers + int response_type = ser.getResponseType(); + + if (response_type == SignatureEnvironmentResponse.ERROR_RESPONSE) + { + // Fehlerfall + System.out.println("Bei der Erstellung der Signatur ist ein Fehler aufgetreten."); + } + else + { + // Signaturerstellung erfolgreich + System.out.println("Signaturerstellung erfolgreich:"); + + Element se = ser.getSignatureEnvironment(); + System.out.println(DOMUtils.serializeNode(se)); + } + } + + /** + * Setzt die notwendigen System-Properties für die Konfiguration der MOA SP/SS API. + * + * @param args Siehe @link CreateXMLSignature#main(String[]). + */ + private static void init(String[] args) + { + if (args == null || args.length != 2) + { + System.out.println("Verwendung: CreateXMLSignature "); + } + System.setProperty("moa.spss.server.configuration", args[0]); + System.setProperty("log4j.configuration", "file:" + args[1]); + } +} \ No newline at end of file diff --git a/spss/handbook/clients/api/src/at/gv/egovernment/moa/spss/handbook/clients/api/VerifyXMLSignature.java b/spss/handbook/clients/api/src/at/gv/egovernment/moa/spss/handbook/clients/api/VerifyXMLSignature.java new file mode 100644 index 000000000..fed8ba9f2 --- /dev/null +++ b/spss/handbook/clients/api/src/at/gv/egovernment/moa/spss/handbook/clients/api/VerifyXMLSignature.java @@ -0,0 +1,147 @@ +package at.gv.egovernment.moa.spss.handbook.clients.api; + +import java.io.FileInputStream; +import java.io.FileNotFoundException; +import java.util.HashMap; + +import at.gv.egovernment.moa.spss.MOAException; +import at.gv.egovernment.moa.spss.api.SPSSFactory; +import at.gv.egovernment.moa.spss.api.SignatureVerificationService; +import at.gv.egovernment.moa.spss.api.common.Content; +import at.gv.egovernment.moa.spss.api.common.SignerInfo; +import at.gv.egovernment.moa.spss.api.xmlverify.VerifySignatureInfo; +import at.gv.egovernment.moa.spss.api.xmlverify.VerifySignatureLocation; +import at.gv.egovernment.moa.spss.api.xmlverify.VerifyXMLSignatureRequest; +import at.gv.egovernment.moa.spss.api.xmlverify.VerifyXMLSignatureResponse; + +/** + * Dieses einfache Beispiel demonstriert grundlegend den Gebrauch der API von MOA SP/SS. + * Es wird damit eine einfach aufgebaute XML-Signatur geprüft. + */ + +public class VerifyXMLSignature +{ + /** + * Methode main. + * + * Enthält beispielhaften Code zum grundlegenden Gebrauch der API von MOA SP/SS. + * Es wird damit eine einfach aufgebaute XML-Signatur geprüft. + * + * ACHTUNG: Stellen Sie bei Verwendung von J2SE 1.4.x bzw. 5.x sicher, dass Sie die System-Property + * java.endorsed.dirs auf jenes Verzeichnis gesetzt haben, in dem sich die XPath- + * und XSLT-Bibliothek Xalan-J befindet. + * + * @param args
    + *
  • + * args[0] enthält einen Verweis auf die Konfigurations-Datei von MOA SP/SS Der Verweis + * enthält entweder eine absolute oder eine relative Pfadangabe, wobei eine relative + * Angabe als relativ zum Arbeitsverzeichnis der Java VM interpretiert wird. + *
  • + *
  • + * args[1] enthält einen Verweis auf die Konfigurations-Datei von Log4J, dem Logging- + * Framework, das von MOA SP/SS verwendet wird. Der Verweis enthält entweder eine + * absolute oder eine relative Pfadangabe, wobei eine relative Angabe als relativ zum + * Arbeitsverzeichnis der Java VM interpretiert wird. + *
  • + *
  • + * args[2] enthält Pfad und Dateiname des XML-Dokuments mit der darin enthaltenen, zu + * prüfenden XML-Signatur. Verwenden Sie z.B. das mit diesem Handbuch mitgelieferte + * Beispiel clients/api/signatures/SimpleSignature.xml. + *
  • + *
+ */ + public static void main(String[] args) + { + // Setzen der System-Properties + init(args); + + // Factory und Service instanzieren + SPSSFactory spssFac = SPSSFactory.getInstance(); + SignatureVerificationService sigVerifyService = SignatureVerificationService.getInstance(); + + // Content aus Dokument mit zu prüfender Signatur erstellen + FileInputStream sigDocFIS = null; + try + { + sigDocFIS = new FileInputStream(args[2]); + } + catch (FileNotFoundException e1) + { + System.err.println("XML-Dokument mit zu prüfender Signatur nicht gefunden: " + args[2]); + System.exit(-1); + } + Content sigDocContent = spssFac.createContent(sigDocFIS, null); + + // Position der zu prüfenden Signatur im Dokument angeben + // (Nachdem im XPath-Ausdruck ein NS-Präfix verwendet wird, muss in einer Lookup-Tabelle + // der damit bezeichnete Namenraum mitgegeben werden) + HashMap nSMap = new HashMap(); + nSMap.put("dsig", "http://www.w3.org/2000/09/xmldsig#"); + VerifySignatureLocation sigLocation = spssFac.createVerifySignatureLocation("//dsig:Signature", nSMap); + + // Zu prüfendes Dokument und Signaturposition zusammenfassen + VerifySignatureInfo sigInfo = spssFac.createVerifySignatureInfo(sigDocContent, sigLocation); + + // Prüfrequest zusammenstellen + VerifyXMLSignatureRequest verifyRequest = spssFac.createVerifyXMLSignatureRequest( + null, // Wird Prüfzeit nicht angegeben, wird aktuelle Zeit verwendet + sigInfo, + null, // Keine Ergänzungsobjekte notwendig + null, // Signaturmanifest-Prüfung soll nicht durchgeführt werden + false, // Hash-Inputdaten, d.h. tatsächlich signierte Daten werden nicht zurückgeliefert + "Test-Signaturdienste"); // ID des verwendeten Vertrauensprofils + + VerifyXMLSignatureResponse verifyResponse = null; + try + { + // Aufruf der Signaturprüfung + verifyResponse = sigVerifyService.verifyXMLSignature(verifyRequest); + } + catch (MOAException e) + { + // Service liefert Fehler + System.err.println("Die Signaturprüfung hat folgenden Fehler geliefert:"); + System.err.println("Fehlercode: " + e.getMessageId()); + System.err.println("Fehlernachricht: " + e.getMessage()); + System.exit(-1); + } + + // Auswertung der Response + System.out.println(); + System.out.println("Ergebnisse der Signaturprüfung:"); + System.out.println(); + + // Besondere Eigenschaften des Signatorzertifikats + SignerInfo signerInfo = verifyResponse.getSignerInfo(); + System.out.println("*** Ist Zertifikat des Signators qualifiziert? " + ((signerInfo.isQualifiedCertificate()) ? "ja" : "nein")); + System.out.println("*** Ist Zertifikat des Signators von einer Behörde? " + ((signerInfo.isPublicAuthority()) ? "ja" : "nein")); + + // Ergebnisse von Signatur- und Zertifikatsprüfung + System.out.println(); + System.out.println("Ergebniscode der Signaturprüfung: " + verifyResponse.getSignatureCheck().getCode()); + System.out.println("Ergebniscode der Zertifikatsprüfung: " + verifyResponse.getCertificateCheck().getCode()); + + // Signatorzertifikat + System.out.println(); + System.out.println("*** Zertifikat des Signators:"); + System.out.println("Aussteller: " + signerInfo.getSignerCertificate().getIssuerDN()); + System.out.println("Subject: " + signerInfo.getSignerCertificate().getSubjectDN()); + System.out.println("Seriennummer: " + signerInfo.getSignerCertificate().getSerialNumber()); + } + + /** + * Setzt die notwendigen System-Properties für die Konfiguration der MOA SP/SS API. + * + * @param args Siehe @link VerifyXMLSignature#main(String[]). + */ + private static void init(String[] args) + { + if (args == null || args.length != 3) + { + System.out.println("Verwendung: VerifyXMLSignature "); + System.exit(-1); + } + System.setProperty("moa.spss.server.configuration", args[0]); + System.setProperty("log4j.configuration", "file:" + args[1]); + } +} \ No newline at end of file -- cgit v1.2.3 From 9e71760a80a7b2cc25ac4700a5d6b6c4d5582eb8 Mon Sep 17 00:00:00 2001 From: pdanner Date: Tue, 4 Sep 2007 10:29:42 +0000 Subject: re-arranged handbook project step1 git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@980 d688527b-c9ab-4aba-bd8d-4036d912da1d --- .../commons-discovery-0.2/commons-discovery.jar | Bin 71442 -> 0 bytes .../commons-logging-1.0.4/commons-logging-api.jar | Bin 26202 -> 0 bytes .../lib/commons-logging-1.0.4/commons-logging.jar | Bin 38015 -> 0 bytes .../iaik-moa-20070503/full/iaik_Pkcs11Provider.jar | Bin 335169 -> 0 bytes .../iaik-moa-20070503/full/iaik_Pkcs11Wrapper.jar | Bin 257600 -> 0 bytes .../api/lib/iaik-moa-20070503/full/iaik_cms.jar | Bin 285185 -> 0 bytes .../api/lib/iaik-moa-20070503/full/iaik_ecc.jar | Bin 127014 -> 0 bytes .../api/lib/iaik-moa-20070503/full/iaik_ixsil.jar | Bin 204092 -> 0 bytes .../lib/iaik-moa-20070503/full/iaik_jce_full.jar | Bin 828817 -> 0 bytes .../lib/iaik-moa-20070503/full/iaik_moa_full.jar | Bin 682332 -> 0 bytes .../full/linux/libpkcs11wrapper.so | Bin 113226 -> 0 bytes .../full/linux_x64/libpkcs11wrapper.so | Bin 119858 -> 0 bytes .../full/signed/iaik_Pkcs11Provider.jar | Bin 350831 -> 0 bytes .../lib/iaik-moa-20070503/full/signed/iaik_ecc.jar | Bin 134782 -> 0 bytes .../full/signed/iaik_jce_full.jar | Bin 837275 -> 0 bytes .../full/solaris_sparc/libpkcs11wrapper.so | Bin 151944 -> 0 bytes .../full/solaris_sparcv9/libpkcs11wrapper.so | Bin 211040 -> 0 bytes .../iaik-moa-20070503/full/win32/pkcs11wrapper.dll | Bin 98304 -> 0 bytes .../full/wince30arm/pkcs11wrapper.dll | Bin 67584 -> 0 bytes .../iaik-moa-20070801/full/iaik_Pkcs11Wrapper.jar | Bin 257600 -> 0 bytes .../api/lib/iaik-moa-20070801/full/iaik_cms.jar | Bin 285185 -> 0 bytes .../api/lib/iaik-moa-20070801/full/iaik_ixsil.jar | Bin 204098 -> 0 bytes .../lib/iaik-moa-20070801/full/iaik_moa_full.jar | Bin 692493 -> 0 bytes .../full/linux/libpkcs11wrapper.so | Bin 113226 -> 0 bytes .../full/linux_x64/libpkcs11wrapper.so | Bin 119858 -> 0 bytes .../full/signed/iaik_Pkcs11Provider.jar | Bin 350831 -> 0 bytes .../lib/iaik-moa-20070801/full/signed/iaik_ecc.jar | Bin 134782 -> 0 bytes .../full/signed/iaik_jce_full.jar | Bin 837275 -> 0 bytes .../full/solaris_sparc/libpkcs11wrapper.so | Bin 151944 -> 0 bytes .../full/solaris_sparcv9/libpkcs11wrapper.so | Bin 211040 -> 0 bytes .../iaik-moa-20070801/full/win32/pkcs11wrapper.dll | Bin 98304 -> 0 bytes .../full/wince30arm/pkcs11wrapper.dll | Bin 67584 -> 0 bytes .../clients/api/lib/jaxen-1.0/jaxen-core.jar | Bin 160967 -> 0 bytes .../clients/api/lib/jaxen-1.0/jaxen-dom.jar | Bin 13707 -> 0 bytes .../handbook/clients/api/lib/jaxen-1.0/saxpath.jar | Bin 23563 -> 0 bytes spss/handbook/clients/api/lib/jaxp-1.2_01/dom.jar | Bin 26710 -> 0 bytes .../clients/api/lib/jaxp-1.2_01/jaxp-api.jar | Bin 27052 -> 0 bytes spss/handbook/clients/api/lib/jaxp-1.2_01/sax.jar | Bin 26206 -> 0 bytes .../clients/api/lib/log4j-1.2.7/log4j-1.2.7.jar | Bin 350677 -> 0 bytes .../api/lib/postgres-jdbc2-7.3/pg73jdbc2.jar | Bin 163980 -> 0 bytes .../clients/api/lib/xalan-j-2.5.1/xalan.jar | Bin 2907319 -> 0 bytes spss/handbook/clients/api/pom.xml | 127 ++++++++++++++++++ .../handbook/clients/api/CreateXMLSignature.java | 130 ------------------ .../handbook/clients/api/VerifyXMLSignature.java | 147 --------------------- .../handbook/clients/api/CreateXMLSignature.java | 130 ++++++++++++++++++ .../handbook/clients/api/VerifyXMLSignature.java | 147 +++++++++++++++++++++ 46 files changed, 404 insertions(+), 277 deletions(-) delete mode 100644 spss/handbook/clients/api/lib/commons-discovery-0.2/commons-discovery.jar delete mode 100644 spss/handbook/clients/api/lib/commons-logging-1.0.4/commons-logging-api.jar delete mode 100644 spss/handbook/clients/api/lib/commons-logging-1.0.4/commons-logging.jar delete mode 100644 spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_Pkcs11Provider.jar delete mode 100644 spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_Pkcs11Wrapper.jar delete mode 100644 spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_cms.jar delete mode 100644 spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_ecc.jar delete mode 100644 spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_ixsil.jar delete mode 100644 spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_jce_full.jar delete mode 100644 spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_moa_full.jar delete mode 100644 spss/handbook/clients/api/lib/iaik-moa-20070503/full/linux/libpkcs11wrapper.so delete mode 100644 spss/handbook/clients/api/lib/iaik-moa-20070503/full/linux_x64/libpkcs11wrapper.so delete mode 100644 spss/handbook/clients/api/lib/iaik-moa-20070503/full/signed/iaik_Pkcs11Provider.jar delete mode 100644 spss/handbook/clients/api/lib/iaik-moa-20070503/full/signed/iaik_ecc.jar delete mode 100644 spss/handbook/clients/api/lib/iaik-moa-20070503/full/signed/iaik_jce_full.jar delete mode 100644 spss/handbook/clients/api/lib/iaik-moa-20070503/full/solaris_sparc/libpkcs11wrapper.so delete mode 100644 spss/handbook/clients/api/lib/iaik-moa-20070503/full/solaris_sparcv9/libpkcs11wrapper.so delete mode 100644 spss/handbook/clients/api/lib/iaik-moa-20070503/full/win32/pkcs11wrapper.dll delete mode 100644 spss/handbook/clients/api/lib/iaik-moa-20070503/full/wince30arm/pkcs11wrapper.dll delete mode 100644 spss/handbook/clients/api/lib/iaik-moa-20070801/full/iaik_Pkcs11Wrapper.jar delete mode 100644 spss/handbook/clients/api/lib/iaik-moa-20070801/full/iaik_cms.jar delete mode 100644 spss/handbook/clients/api/lib/iaik-moa-20070801/full/iaik_ixsil.jar delete mode 100644 spss/handbook/clients/api/lib/iaik-moa-20070801/full/iaik_moa_full.jar delete mode 100644 spss/handbook/clients/api/lib/iaik-moa-20070801/full/linux/libpkcs11wrapper.so delete mode 100644 spss/handbook/clients/api/lib/iaik-moa-20070801/full/linux_x64/libpkcs11wrapper.so delete mode 100644 spss/handbook/clients/api/lib/iaik-moa-20070801/full/signed/iaik_Pkcs11Provider.jar delete mode 100644 spss/handbook/clients/api/lib/iaik-moa-20070801/full/signed/iaik_ecc.jar delete mode 100644 spss/handbook/clients/api/lib/iaik-moa-20070801/full/signed/iaik_jce_full.jar delete mode 100644 spss/handbook/clients/api/lib/iaik-moa-20070801/full/solaris_sparc/libpkcs11wrapper.so delete mode 100644 spss/handbook/clients/api/lib/iaik-moa-20070801/full/solaris_sparcv9/libpkcs11wrapper.so delete mode 100644 spss/handbook/clients/api/lib/iaik-moa-20070801/full/win32/pkcs11wrapper.dll delete mode 100644 spss/handbook/clients/api/lib/iaik-moa-20070801/full/wince30arm/pkcs11wrapper.dll delete mode 100644 spss/handbook/clients/api/lib/jaxen-1.0/jaxen-core.jar delete mode 100644 spss/handbook/clients/api/lib/jaxen-1.0/jaxen-dom.jar delete mode 100644 spss/handbook/clients/api/lib/jaxen-1.0/saxpath.jar delete mode 100644 spss/handbook/clients/api/lib/jaxp-1.2_01/dom.jar delete mode 100644 spss/handbook/clients/api/lib/jaxp-1.2_01/jaxp-api.jar delete mode 100644 spss/handbook/clients/api/lib/jaxp-1.2_01/sax.jar delete mode 100644 spss/handbook/clients/api/lib/log4j-1.2.7/log4j-1.2.7.jar delete mode 100644 spss/handbook/clients/api/lib/postgres-jdbc2-7.3/pg73jdbc2.jar delete mode 100644 spss/handbook/clients/api/lib/xalan-j-2.5.1/xalan.jar create mode 100644 spss/handbook/clients/api/pom.xml delete mode 100644 spss/handbook/clients/api/src/at/gv/egovernment/moa/spss/handbook/clients/api/CreateXMLSignature.java delete mode 100644 spss/handbook/clients/api/src/at/gv/egovernment/moa/spss/handbook/clients/api/VerifyXMLSignature.java create mode 100644 spss/handbook/clients/api/src/main/java/at/gv/egovernment/moa/spss/handbook/clients/api/CreateXMLSignature.java create mode 100644 spss/handbook/clients/api/src/main/java/at/gv/egovernment/moa/spss/handbook/clients/api/VerifyXMLSignature.java (limited to 'spss/handbook/clients/api') diff --git a/spss/handbook/clients/api/lib/commons-discovery-0.2/commons-discovery.jar b/spss/handbook/clients/api/lib/commons-discovery-0.2/commons-discovery.jar deleted file mode 100644 index b88554847..000000000 Binary files a/spss/handbook/clients/api/lib/commons-discovery-0.2/commons-discovery.jar and /dev/null differ diff --git a/spss/handbook/clients/api/lib/commons-logging-1.0.4/commons-logging-api.jar b/spss/handbook/clients/api/lib/commons-logging-1.0.4/commons-logging-api.jar deleted file mode 100644 index ade9a13c7..000000000 Binary files a/spss/handbook/clients/api/lib/commons-logging-1.0.4/commons-logging-api.jar and /dev/null differ diff --git a/spss/handbook/clients/api/lib/commons-logging-1.0.4/commons-logging.jar b/spss/handbook/clients/api/lib/commons-logging-1.0.4/commons-logging.jar deleted file mode 100644 index b73a80fab..000000000 Binary files a/spss/handbook/clients/api/lib/commons-logging-1.0.4/commons-logging.jar and /dev/null differ diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_Pkcs11Provider.jar b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_Pkcs11Provider.jar deleted file mode 100644 index af39b42b1..000000000 Binary files a/spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_Pkcs11Provider.jar and /dev/null differ diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_Pkcs11Wrapper.jar b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_Pkcs11Wrapper.jar deleted file mode 100644 index 43342ef7c..000000000 Binary files a/spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_Pkcs11Wrapper.jar and /dev/null differ diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_cms.jar b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_cms.jar deleted file mode 100644 index 7264a68f3..000000000 Binary files a/spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_cms.jar and /dev/null differ diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_ecc.jar b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_ecc.jar deleted file mode 100644 index 4cd73391d..000000000 Binary files a/spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_ecc.jar and /dev/null differ diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_ixsil.jar b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_ixsil.jar deleted file mode 100644 index 5279f2247..000000000 Binary files a/spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_ixsil.jar and /dev/null differ diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_jce_full.jar b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_jce_full.jar deleted file mode 100644 index fe14dbb2a..000000000 Binary files a/spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_jce_full.jar and /dev/null differ diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_moa_full.jar b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_moa_full.jar deleted file mode 100644 index 539988fba..000000000 Binary files a/spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_moa_full.jar and /dev/null differ diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070503/full/linux/libpkcs11wrapper.so b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/linux/libpkcs11wrapper.so deleted file mode 100644 index 11852511b..000000000 Binary files a/spss/handbook/clients/api/lib/iaik-moa-20070503/full/linux/libpkcs11wrapper.so and /dev/null differ diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070503/full/linux_x64/libpkcs11wrapper.so b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/linux_x64/libpkcs11wrapper.so deleted file mode 100644 index 393946053..000000000 Binary files a/spss/handbook/clients/api/lib/iaik-moa-20070503/full/linux_x64/libpkcs11wrapper.so and /dev/null differ diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070503/full/signed/iaik_Pkcs11Provider.jar b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/signed/iaik_Pkcs11Provider.jar deleted file mode 100644 index a348db04e..000000000 Binary files a/spss/handbook/clients/api/lib/iaik-moa-20070503/full/signed/iaik_Pkcs11Provider.jar and /dev/null differ diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070503/full/signed/iaik_ecc.jar b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/signed/iaik_ecc.jar deleted file mode 100644 index b8a4f190b..000000000 Binary files a/spss/handbook/clients/api/lib/iaik-moa-20070503/full/signed/iaik_ecc.jar and /dev/null differ diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070503/full/signed/iaik_jce_full.jar b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/signed/iaik_jce_full.jar deleted file mode 100644 index 7288bc39d..000000000 Binary files a/spss/handbook/clients/api/lib/iaik-moa-20070503/full/signed/iaik_jce_full.jar and /dev/null differ diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070503/full/solaris_sparc/libpkcs11wrapper.so b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/solaris_sparc/libpkcs11wrapper.so deleted file mode 100644 index 0b19f10c1..000000000 Binary files a/spss/handbook/clients/api/lib/iaik-moa-20070503/full/solaris_sparc/libpkcs11wrapper.so and /dev/null differ diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070503/full/solaris_sparcv9/libpkcs11wrapper.so b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/solaris_sparcv9/libpkcs11wrapper.so deleted file mode 100644 index 11f928b0b..000000000 Binary files a/spss/handbook/clients/api/lib/iaik-moa-20070503/full/solaris_sparcv9/libpkcs11wrapper.so and /dev/null differ diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070503/full/win32/pkcs11wrapper.dll b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/win32/pkcs11wrapper.dll deleted file mode 100644 index 3789b8d7a..000000000 Binary files a/spss/handbook/clients/api/lib/iaik-moa-20070503/full/win32/pkcs11wrapper.dll and /dev/null differ diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070503/full/wince30arm/pkcs11wrapper.dll b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/wince30arm/pkcs11wrapper.dll deleted file mode 100644 index d98e48d80..000000000 Binary files a/spss/handbook/clients/api/lib/iaik-moa-20070503/full/wince30arm/pkcs11wrapper.dll and /dev/null differ diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070801/full/iaik_Pkcs11Wrapper.jar b/spss/handbook/clients/api/lib/iaik-moa-20070801/full/iaik_Pkcs11Wrapper.jar deleted file mode 100644 index 43342ef7c..000000000 Binary files a/spss/handbook/clients/api/lib/iaik-moa-20070801/full/iaik_Pkcs11Wrapper.jar and /dev/null differ diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070801/full/iaik_cms.jar b/spss/handbook/clients/api/lib/iaik-moa-20070801/full/iaik_cms.jar deleted file mode 100644 index 7264a68f3..000000000 Binary files a/spss/handbook/clients/api/lib/iaik-moa-20070801/full/iaik_cms.jar and /dev/null differ diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070801/full/iaik_ixsil.jar b/spss/handbook/clients/api/lib/iaik-moa-20070801/full/iaik_ixsil.jar deleted file mode 100644 index 003df0066..000000000 Binary files a/spss/handbook/clients/api/lib/iaik-moa-20070801/full/iaik_ixsil.jar and /dev/null differ diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070801/full/iaik_moa_full.jar b/spss/handbook/clients/api/lib/iaik-moa-20070801/full/iaik_moa_full.jar deleted file mode 100644 index 35ffc2d06..000000000 Binary files a/spss/handbook/clients/api/lib/iaik-moa-20070801/full/iaik_moa_full.jar and /dev/null differ diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070801/full/linux/libpkcs11wrapper.so b/spss/handbook/clients/api/lib/iaik-moa-20070801/full/linux/libpkcs11wrapper.so deleted file mode 100644 index 11852511b..000000000 Binary files a/spss/handbook/clients/api/lib/iaik-moa-20070801/full/linux/libpkcs11wrapper.so and /dev/null differ diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070801/full/linux_x64/libpkcs11wrapper.so b/spss/handbook/clients/api/lib/iaik-moa-20070801/full/linux_x64/libpkcs11wrapper.so deleted file mode 100644 index 393946053..000000000 Binary files a/spss/handbook/clients/api/lib/iaik-moa-20070801/full/linux_x64/libpkcs11wrapper.so and /dev/null differ diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070801/full/signed/iaik_Pkcs11Provider.jar b/spss/handbook/clients/api/lib/iaik-moa-20070801/full/signed/iaik_Pkcs11Provider.jar deleted file mode 100644 index a348db04e..000000000 Binary files a/spss/handbook/clients/api/lib/iaik-moa-20070801/full/signed/iaik_Pkcs11Provider.jar and /dev/null differ diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070801/full/signed/iaik_ecc.jar b/spss/handbook/clients/api/lib/iaik-moa-20070801/full/signed/iaik_ecc.jar deleted file mode 100644 index b8a4f190b..000000000 Binary files a/spss/handbook/clients/api/lib/iaik-moa-20070801/full/signed/iaik_ecc.jar and /dev/null differ diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070801/full/signed/iaik_jce_full.jar b/spss/handbook/clients/api/lib/iaik-moa-20070801/full/signed/iaik_jce_full.jar deleted file mode 100644 index 7288bc39d..000000000 Binary files a/spss/handbook/clients/api/lib/iaik-moa-20070801/full/signed/iaik_jce_full.jar and /dev/null differ diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070801/full/solaris_sparc/libpkcs11wrapper.so b/spss/handbook/clients/api/lib/iaik-moa-20070801/full/solaris_sparc/libpkcs11wrapper.so deleted file mode 100644 index 0b19f10c1..000000000 Binary files a/spss/handbook/clients/api/lib/iaik-moa-20070801/full/solaris_sparc/libpkcs11wrapper.so and /dev/null differ diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070801/full/solaris_sparcv9/libpkcs11wrapper.so b/spss/handbook/clients/api/lib/iaik-moa-20070801/full/solaris_sparcv9/libpkcs11wrapper.so deleted file mode 100644 index 11f928b0b..000000000 Binary files a/spss/handbook/clients/api/lib/iaik-moa-20070801/full/solaris_sparcv9/libpkcs11wrapper.so and /dev/null differ diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070801/full/win32/pkcs11wrapper.dll b/spss/handbook/clients/api/lib/iaik-moa-20070801/full/win32/pkcs11wrapper.dll deleted file mode 100644 index 3789b8d7a..000000000 Binary files a/spss/handbook/clients/api/lib/iaik-moa-20070801/full/win32/pkcs11wrapper.dll and /dev/null differ diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070801/full/wince30arm/pkcs11wrapper.dll b/spss/handbook/clients/api/lib/iaik-moa-20070801/full/wince30arm/pkcs11wrapper.dll deleted file mode 100644 index d98e48d80..000000000 Binary files a/spss/handbook/clients/api/lib/iaik-moa-20070801/full/wince30arm/pkcs11wrapper.dll and /dev/null differ diff --git a/spss/handbook/clients/api/lib/jaxen-1.0/jaxen-core.jar b/spss/handbook/clients/api/lib/jaxen-1.0/jaxen-core.jar deleted file mode 100644 index e52bf679c..000000000 Binary files a/spss/handbook/clients/api/lib/jaxen-1.0/jaxen-core.jar and /dev/null differ diff --git a/spss/handbook/clients/api/lib/jaxen-1.0/jaxen-dom.jar b/spss/handbook/clients/api/lib/jaxen-1.0/jaxen-dom.jar deleted file mode 100644 index 1a9926357..000000000 Binary files a/spss/handbook/clients/api/lib/jaxen-1.0/jaxen-dom.jar and /dev/null differ diff --git a/spss/handbook/clients/api/lib/jaxen-1.0/saxpath.jar b/spss/handbook/clients/api/lib/jaxen-1.0/saxpath.jar deleted file mode 100644 index 2b43955ba..000000000 Binary files a/spss/handbook/clients/api/lib/jaxen-1.0/saxpath.jar and /dev/null differ diff --git a/spss/handbook/clients/api/lib/jaxp-1.2_01/dom.jar b/spss/handbook/clients/api/lib/jaxp-1.2_01/dom.jar deleted file mode 100644 index f91f80a8b..000000000 Binary files a/spss/handbook/clients/api/lib/jaxp-1.2_01/dom.jar and /dev/null differ diff --git a/spss/handbook/clients/api/lib/jaxp-1.2_01/jaxp-api.jar b/spss/handbook/clients/api/lib/jaxp-1.2_01/jaxp-api.jar deleted file mode 100644 index 7a3295ee6..000000000 Binary files a/spss/handbook/clients/api/lib/jaxp-1.2_01/jaxp-api.jar and /dev/null differ diff --git a/spss/handbook/clients/api/lib/jaxp-1.2_01/sax.jar b/spss/handbook/clients/api/lib/jaxp-1.2_01/sax.jar deleted file mode 100644 index 9ffb844e5..000000000 Binary files a/spss/handbook/clients/api/lib/jaxp-1.2_01/sax.jar and /dev/null differ diff --git a/spss/handbook/clients/api/lib/log4j-1.2.7/log4j-1.2.7.jar b/spss/handbook/clients/api/lib/log4j-1.2.7/log4j-1.2.7.jar deleted file mode 100644 index 1595a56ef..000000000 Binary files a/spss/handbook/clients/api/lib/log4j-1.2.7/log4j-1.2.7.jar and /dev/null differ diff --git a/spss/handbook/clients/api/lib/postgres-jdbc2-7.3/pg73jdbc2.jar b/spss/handbook/clients/api/lib/postgres-jdbc2-7.3/pg73jdbc2.jar deleted file mode 100644 index 8bf46dd8e..000000000 Binary files a/spss/handbook/clients/api/lib/postgres-jdbc2-7.3/pg73jdbc2.jar and /dev/null differ diff --git a/spss/handbook/clients/api/lib/xalan-j-2.5.1/xalan.jar b/spss/handbook/clients/api/lib/xalan-j-2.5.1/xalan.jar deleted file mode 100644 index 44d4d094d..000000000 Binary files a/spss/handbook/clients/api/lib/xalan-j-2.5.1/xalan.jar and /dev/null differ diff --git a/spss/handbook/clients/api/pom.xml b/spss/handbook/clients/api/pom.xml new file mode 100644 index 000000000..82a305275 --- /dev/null +++ b/spss/handbook/clients/api/pom.xml @@ -0,0 +1,127 @@ + + + MOA + spss + 1.4.0 + + + 4.0.0 + MOA.spss.handbook + moa-spss-handbook-apiClient + jar + 1.4.0 + MOA SP/SS Handbook API Client + + + ${basedir}/../../../../../repository + + + + + axis + axis + + + commons-discovery + commons-discovery + + + commons-logging + commons-logging + + + javax.activation + activation + + + javax.mail + mail + + + junit + junit + + + log4j + log4j + + + postgresql + postgresql + + + javax.servlet + servlet-api + provided + + + xalan-bin-dist + xalan + compile + + + xerces + xercesImpl + + + xalan-bin-dist + xml-apis + + + xalan-bin-dist + serializer + + + iaik.prod + iaik_moa + + + iaik.prod + iaik_ixsil + + + iaik.prod + iaik_jce_full + compile + + + iaik.prod + iaik_ecc + compile + + + iaik.prod + iaik_cms + runtime + + + iaik.prod + iaik_Pkcs11Provider + runtime + + + iaik.prod + iaik_Pkcs11Wrapper + runtime + + + iaik.prod + iaik_Pkcs11Wrapper + win32 + dll + runtime + true + + + MOA + moa-common + + + MOA.spss.server + moa-spss-lib + ${project.version} + + + + diff --git a/spss/handbook/clients/api/src/at/gv/egovernment/moa/spss/handbook/clients/api/CreateXMLSignature.java b/spss/handbook/clients/api/src/at/gv/egovernment/moa/spss/handbook/clients/api/CreateXMLSignature.java deleted file mode 100644 index 2534e4913..000000000 --- a/spss/handbook/clients/api/src/at/gv/egovernment/moa/spss/handbook/clients/api/CreateXMLSignature.java +++ /dev/null @@ -1,130 +0,0 @@ -package at.gv.egovernment.moa.spss.handbook.clients.api; - -import java.io.ByteArrayInputStream; -import java.util.ArrayList; -import java.util.List; - -import org.w3c.dom.Element; - -import at.gv.egovernment.moa.spss.api.SPSSFactory; -import at.gv.egovernment.moa.spss.api.SignatureCreationService; -import at.gv.egovernment.moa.spss.api.common.Content; -import at.gv.egovernment.moa.spss.api.common.MetaInfo; -import at.gv.egovernment.moa.spss.api.xmlsign.CreateTransformsInfo; -import at.gv.egovernment.moa.spss.api.xmlsign.CreateTransformsInfoProfile; -import at.gv.egovernment.moa.spss.api.xmlsign.CreateXMLSignatureRequest; -import at.gv.egovernment.moa.spss.api.xmlsign.CreateXMLSignatureResponse; -import at.gv.egovernment.moa.spss.api.xmlsign.DataObjectInfo; -import at.gv.egovernment.moa.spss.api.xmlsign.SignatureEnvironmentResponse; -import at.gv.egovernment.moa.spss.api.xmlsign.SingleSignatureInfo; -import at.gv.egovernment.moa.util.DOMUtils; - -/** - * Dieses einfache Beispiel demonstriert grundlegend den Gebrauch der API von MOA SP/SS. Es wird damit eine - * einfach aufgebaute XML-Signatur erzeugt. - */ -public class CreateXMLSignature -{ - /** - * Methode main. - * - * Enthält beispielhaften Code zum grundlegenden Gebrauch der API von MOA SP/SS. Es wird damit eine - * einfach aufgebaute XML-Signatur erzeugt. - * - * ACHTUNG: Stellen Sie bei Verwendung von J2SE 1.4.x bzw. 5.x sicher, dass Sie die System-Property - * java.endorsed.dirs auf jenes Verzeichnis gesetzt haben, in dem sich die XPath- - * und XSLT-Bibliothek Xalan-J befindet. - * - * @param args
    - *
  • - * args[0] enthält einen Verweis auf die Konfigurations-Datei von MOA SP/SS Der Verweis - * enthält entweder eine absolute oder eine relative Pfadangabe, wobei eine relative - * Angabe als relativ zum Arbeitsverzeichnis der Java VM interpretiert wird. - *
  • - *
  • - * args[1] enthält einen Verweis auf die Konfigurations-Datei von Log4J, dem Logging- - * Framework, das von MOA SP/SS verwendet wird. Der Verweis enthält entweder eine - * absolute oder eine relative Pfadangabe, wobei eine relative Angabe als relativ zum - * Arbeitsverzeichnis der Java VM interpretiert wird. - *
  • - *
- * - * @throws Exception Sollten Fehler auftreten werden die Fehler an die Java-VM weitergeleitet. - */ - public static void main(String[] args) throws Exception - { - // Setzen der System-Properties - init(args); - - // Serverfunktionshandler instanzieren - SPSSFactory spf = SPSSFactory.getInstance(); - - // Zu signierende Daten in ein Contentobjekt einbinden (die Daten werden hier explizit angegeben, - // sollen aber in der Signatur mittels URL "http://uri.data.org" referenziert werden - byte[] data = "Diese Daten werden signiert.".getBytes("UTF-8"); - ByteArrayInputStream bis = new ByteArrayInputStream(data); - Content cont = spf.createContent(bis, null); - - // Metainformationen zu den zu signierenden Daten erstellen - MetaInfo mi = spf.createMetaInfo("text/plain", null, null, null); - - // Transformationen erstellen (hier werden keine Transformationen angewandt) - CreateTransformsInfo cti = spf.createCreateTransformsInfo(null, mi); - CreateTransformsInfoProfile ct = spf.createCreateTransformsInfoProfile(cti, null); - - // Datenobjekt aufbauen - DataObjectInfo doi = spf.createDataObjectInfo(DataObjectInfo.STRUCTURE_ENVELOPING, false, cont, ct); - - // Erstellen eines SingleSignatureInfo-Containers - // Enthält alle Angaben zur Erstellung *einer* Signatur - List dataobjectinfolist = new ArrayList(); - dataobjectinfolist.add(doi); - SingleSignatureInfo ssi = spf.createSingleSignatureInfo(dataobjectinfolist, null, false); - - // Erstellen des Request-Objekts (Schlüsselbezeichner, Liste von SingleSignatureInfo-Containern) - List singlesignatureinfolist = new ArrayList(); - singlesignatureinfolist.add(ssi); - CreateXMLSignatureRequest cxsreq = spf.createCreateXMLSignatureRequest("KG_allgemein", - singlesignatureinfolist); - - // Signatureerstellungsservice instanzieren und aufrufen - SignatureCreationService scs = SignatureCreationService.getInstance(); - CreateXMLSignatureResponse cxsres = scs.createXMLSignature(cxsreq); - - // Response auswerten - List elements = cxsres.getResponseElements(); - SignatureEnvironmentResponse ser = (SignatureEnvironmentResponse) elements.get(0); - - // Auswertung des ersten (und einzigen) SignatureEnvironmentResponse-Containers - int response_type = ser.getResponseType(); - - if (response_type == SignatureEnvironmentResponse.ERROR_RESPONSE) - { - // Fehlerfall - System.out.println("Bei der Erstellung der Signatur ist ein Fehler aufgetreten."); - } - else - { - // Signaturerstellung erfolgreich - System.out.println("Signaturerstellung erfolgreich:"); - - Element se = ser.getSignatureEnvironment(); - System.out.println(DOMUtils.serializeNode(se)); - } - } - - /** - * Setzt die notwendigen System-Properties für die Konfiguration der MOA SP/SS API. - * - * @param args Siehe @link CreateXMLSignature#main(String[]). - */ - private static void init(String[] args) - { - if (args == null || args.length != 2) - { - System.out.println("Verwendung: CreateXMLSignature "); - } - System.setProperty("moa.spss.server.configuration", args[0]); - System.setProperty("log4j.configuration", "file:" + args[1]); - } -} \ No newline at end of file diff --git a/spss/handbook/clients/api/src/at/gv/egovernment/moa/spss/handbook/clients/api/VerifyXMLSignature.java b/spss/handbook/clients/api/src/at/gv/egovernment/moa/spss/handbook/clients/api/VerifyXMLSignature.java deleted file mode 100644 index fed8ba9f2..000000000 --- a/spss/handbook/clients/api/src/at/gv/egovernment/moa/spss/handbook/clients/api/VerifyXMLSignature.java +++ /dev/null @@ -1,147 +0,0 @@ -package at.gv.egovernment.moa.spss.handbook.clients.api; - -import java.io.FileInputStream; -import java.io.FileNotFoundException; -import java.util.HashMap; - -import at.gv.egovernment.moa.spss.MOAException; -import at.gv.egovernment.moa.spss.api.SPSSFactory; -import at.gv.egovernment.moa.spss.api.SignatureVerificationService; -import at.gv.egovernment.moa.spss.api.common.Content; -import at.gv.egovernment.moa.spss.api.common.SignerInfo; -import at.gv.egovernment.moa.spss.api.xmlverify.VerifySignatureInfo; -import at.gv.egovernment.moa.spss.api.xmlverify.VerifySignatureLocation; -import at.gv.egovernment.moa.spss.api.xmlverify.VerifyXMLSignatureRequest; -import at.gv.egovernment.moa.spss.api.xmlverify.VerifyXMLSignatureResponse; - -/** - * Dieses einfache Beispiel demonstriert grundlegend den Gebrauch der API von MOA SP/SS. - * Es wird damit eine einfach aufgebaute XML-Signatur geprüft. - */ - -public class VerifyXMLSignature -{ - /** - * Methode main. - * - * Enthält beispielhaften Code zum grundlegenden Gebrauch der API von MOA SP/SS. - * Es wird damit eine einfach aufgebaute XML-Signatur geprüft. - * - * ACHTUNG: Stellen Sie bei Verwendung von J2SE 1.4.x bzw. 5.x sicher, dass Sie die System-Property - * java.endorsed.dirs auf jenes Verzeichnis gesetzt haben, in dem sich die XPath- - * und XSLT-Bibliothek Xalan-J befindet. - * - * @param args
    - *
  • - * args[0] enthält einen Verweis auf die Konfigurations-Datei von MOA SP/SS Der Verweis - * enthält entweder eine absolute oder eine relative Pfadangabe, wobei eine relative - * Angabe als relativ zum Arbeitsverzeichnis der Java VM interpretiert wird. - *
  • - *
  • - * args[1] enthält einen Verweis auf die Konfigurations-Datei von Log4J, dem Logging- - * Framework, das von MOA SP/SS verwendet wird. Der Verweis enthält entweder eine - * absolute oder eine relative Pfadangabe, wobei eine relative Angabe als relativ zum - * Arbeitsverzeichnis der Java VM interpretiert wird. - *
  • - *
  • - * args[2] enthält Pfad und Dateiname des XML-Dokuments mit der darin enthaltenen, zu - * prüfenden XML-Signatur. Verwenden Sie z.B. das mit diesem Handbuch mitgelieferte - * Beispiel clients/api/signatures/SimpleSignature.xml. - *
  • - *
- */ - public static void main(String[] args) - { - // Setzen der System-Properties - init(args); - - // Factory und Service instanzieren - SPSSFactory spssFac = SPSSFactory.getInstance(); - SignatureVerificationService sigVerifyService = SignatureVerificationService.getInstance(); - - // Content aus Dokument mit zu prüfender Signatur erstellen - FileInputStream sigDocFIS = null; - try - { - sigDocFIS = new FileInputStream(args[2]); - } - catch (FileNotFoundException e1) - { - System.err.println("XML-Dokument mit zu prüfender Signatur nicht gefunden: " + args[2]); - System.exit(-1); - } - Content sigDocContent = spssFac.createContent(sigDocFIS, null); - - // Position der zu prüfenden Signatur im Dokument angeben - // (Nachdem im XPath-Ausdruck ein NS-Präfix verwendet wird, muss in einer Lookup-Tabelle - // der damit bezeichnete Namenraum mitgegeben werden) - HashMap nSMap = new HashMap(); - nSMap.put("dsig", "http://www.w3.org/2000/09/xmldsig#"); - VerifySignatureLocation sigLocation = spssFac.createVerifySignatureLocation("//dsig:Signature", nSMap); - - // Zu prüfendes Dokument und Signaturposition zusammenfassen - VerifySignatureInfo sigInfo = spssFac.createVerifySignatureInfo(sigDocContent, sigLocation); - - // Prüfrequest zusammenstellen - VerifyXMLSignatureRequest verifyRequest = spssFac.createVerifyXMLSignatureRequest( - null, // Wird Prüfzeit nicht angegeben, wird aktuelle Zeit verwendet - sigInfo, - null, // Keine Ergänzungsobjekte notwendig - null, // Signaturmanifest-Prüfung soll nicht durchgeführt werden - false, // Hash-Inputdaten, d.h. tatsächlich signierte Daten werden nicht zurückgeliefert - "Test-Signaturdienste"); // ID des verwendeten Vertrauensprofils - - VerifyXMLSignatureResponse verifyResponse = null; - try - { - // Aufruf der Signaturprüfung - verifyResponse = sigVerifyService.verifyXMLSignature(verifyRequest); - } - catch (MOAException e) - { - // Service liefert Fehler - System.err.println("Die Signaturprüfung hat folgenden Fehler geliefert:"); - System.err.println("Fehlercode: " + e.getMessageId()); - System.err.println("Fehlernachricht: " + e.getMessage()); - System.exit(-1); - } - - // Auswertung der Response - System.out.println(); - System.out.println("Ergebnisse der Signaturprüfung:"); - System.out.println(); - - // Besondere Eigenschaften des Signatorzertifikats - SignerInfo signerInfo = verifyResponse.getSignerInfo(); - System.out.println("*** Ist Zertifikat des Signators qualifiziert? " + ((signerInfo.isQualifiedCertificate()) ? "ja" : "nein")); - System.out.println("*** Ist Zertifikat des Signators von einer Behörde? " + ((signerInfo.isPublicAuthority()) ? "ja" : "nein")); - - // Ergebnisse von Signatur- und Zertifikatsprüfung - System.out.println(); - System.out.println("Ergebniscode der Signaturprüfung: " + verifyResponse.getSignatureCheck().getCode()); - System.out.println("Ergebniscode der Zertifikatsprüfung: " + verifyResponse.getCertificateCheck().getCode()); - - // Signatorzertifikat - System.out.println(); - System.out.println("*** Zertifikat des Signators:"); - System.out.println("Aussteller: " + signerInfo.getSignerCertificate().getIssuerDN()); - System.out.println("Subject: " + signerInfo.getSignerCertificate().getSubjectDN()); - System.out.println("Seriennummer: " + signerInfo.getSignerCertificate().getSerialNumber()); - } - - /** - * Setzt die notwendigen System-Properties für die Konfiguration der MOA SP/SS API. - * - * @param args Siehe @link VerifyXMLSignature#main(String[]). - */ - private static void init(String[] args) - { - if (args == null || args.length != 3) - { - System.out.println("Verwendung: VerifyXMLSignature "); - System.exit(-1); - } - System.setProperty("moa.spss.server.configuration", args[0]); - System.setProperty("log4j.configuration", "file:" + args[1]); - } -} \ No newline at end of file diff --git a/spss/handbook/clients/api/src/main/java/at/gv/egovernment/moa/spss/handbook/clients/api/CreateXMLSignature.java b/spss/handbook/clients/api/src/main/java/at/gv/egovernment/moa/spss/handbook/clients/api/CreateXMLSignature.java new file mode 100644 index 000000000..2534e4913 --- /dev/null +++ b/spss/handbook/clients/api/src/main/java/at/gv/egovernment/moa/spss/handbook/clients/api/CreateXMLSignature.java @@ -0,0 +1,130 @@ +package at.gv.egovernment.moa.spss.handbook.clients.api; + +import java.io.ByteArrayInputStream; +import java.util.ArrayList; +import java.util.List; + +import org.w3c.dom.Element; + +import at.gv.egovernment.moa.spss.api.SPSSFactory; +import at.gv.egovernment.moa.spss.api.SignatureCreationService; +import at.gv.egovernment.moa.spss.api.common.Content; +import at.gv.egovernment.moa.spss.api.common.MetaInfo; +import at.gv.egovernment.moa.spss.api.xmlsign.CreateTransformsInfo; +import at.gv.egovernment.moa.spss.api.xmlsign.CreateTransformsInfoProfile; +import at.gv.egovernment.moa.spss.api.xmlsign.CreateXMLSignatureRequest; +import at.gv.egovernment.moa.spss.api.xmlsign.CreateXMLSignatureResponse; +import at.gv.egovernment.moa.spss.api.xmlsign.DataObjectInfo; +import at.gv.egovernment.moa.spss.api.xmlsign.SignatureEnvironmentResponse; +import at.gv.egovernment.moa.spss.api.xmlsign.SingleSignatureInfo; +import at.gv.egovernment.moa.util.DOMUtils; + +/** + * Dieses einfache Beispiel demonstriert grundlegend den Gebrauch der API von MOA SP/SS. Es wird damit eine + * einfach aufgebaute XML-Signatur erzeugt. + */ +public class CreateXMLSignature +{ + /** + * Methode main. + * + * Enthält beispielhaften Code zum grundlegenden Gebrauch der API von MOA SP/SS. Es wird damit eine + * einfach aufgebaute XML-Signatur erzeugt. + * + * ACHTUNG: Stellen Sie bei Verwendung von J2SE 1.4.x bzw. 5.x sicher, dass Sie die System-Property + * java.endorsed.dirs auf jenes Verzeichnis gesetzt haben, in dem sich die XPath- + * und XSLT-Bibliothek Xalan-J befindet. + * + * @param args
    + *
  • + * args[0] enthält einen Verweis auf die Konfigurations-Datei von MOA SP/SS Der Verweis + * enthält entweder eine absolute oder eine relative Pfadangabe, wobei eine relative + * Angabe als relativ zum Arbeitsverzeichnis der Java VM interpretiert wird. + *
  • + *
  • + * args[1] enthält einen Verweis auf die Konfigurations-Datei von Log4J, dem Logging- + * Framework, das von MOA SP/SS verwendet wird. Der Verweis enthält entweder eine + * absolute oder eine relative Pfadangabe, wobei eine relative Angabe als relativ zum + * Arbeitsverzeichnis der Java VM interpretiert wird. + *
  • + *
+ * + * @throws Exception Sollten Fehler auftreten werden die Fehler an die Java-VM weitergeleitet. + */ + public static void main(String[] args) throws Exception + { + // Setzen der System-Properties + init(args); + + // Serverfunktionshandler instanzieren + SPSSFactory spf = SPSSFactory.getInstance(); + + // Zu signierende Daten in ein Contentobjekt einbinden (die Daten werden hier explizit angegeben, + // sollen aber in der Signatur mittels URL "http://uri.data.org" referenziert werden + byte[] data = "Diese Daten werden signiert.".getBytes("UTF-8"); + ByteArrayInputStream bis = new ByteArrayInputStream(data); + Content cont = spf.createContent(bis, null); + + // Metainformationen zu den zu signierenden Daten erstellen + MetaInfo mi = spf.createMetaInfo("text/plain", null, null, null); + + // Transformationen erstellen (hier werden keine Transformationen angewandt) + CreateTransformsInfo cti = spf.createCreateTransformsInfo(null, mi); + CreateTransformsInfoProfile ct = spf.createCreateTransformsInfoProfile(cti, null); + + // Datenobjekt aufbauen + DataObjectInfo doi = spf.createDataObjectInfo(DataObjectInfo.STRUCTURE_ENVELOPING, false, cont, ct); + + // Erstellen eines SingleSignatureInfo-Containers + // Enthält alle Angaben zur Erstellung *einer* Signatur + List dataobjectinfolist = new ArrayList(); + dataobjectinfolist.add(doi); + SingleSignatureInfo ssi = spf.createSingleSignatureInfo(dataobjectinfolist, null, false); + + // Erstellen des Request-Objekts (Schlüsselbezeichner, Liste von SingleSignatureInfo-Containern) + List singlesignatureinfolist = new ArrayList(); + singlesignatureinfolist.add(ssi); + CreateXMLSignatureRequest cxsreq = spf.createCreateXMLSignatureRequest("KG_allgemein", + singlesignatureinfolist); + + // Signatureerstellungsservice instanzieren und aufrufen + SignatureCreationService scs = SignatureCreationService.getInstance(); + CreateXMLSignatureResponse cxsres = scs.createXMLSignature(cxsreq); + + // Response auswerten + List elements = cxsres.getResponseElements(); + SignatureEnvironmentResponse ser = (SignatureEnvironmentResponse) elements.get(0); + + // Auswertung des ersten (und einzigen) SignatureEnvironmentResponse-Containers + int response_type = ser.getResponseType(); + + if (response_type == SignatureEnvironmentResponse.ERROR_RESPONSE) + { + // Fehlerfall + System.out.println("Bei der Erstellung der Signatur ist ein Fehler aufgetreten."); + } + else + { + // Signaturerstellung erfolgreich + System.out.println("Signaturerstellung erfolgreich:"); + + Element se = ser.getSignatureEnvironment(); + System.out.println(DOMUtils.serializeNode(se)); + } + } + + /** + * Setzt die notwendigen System-Properties für die Konfiguration der MOA SP/SS API. + * + * @param args Siehe @link CreateXMLSignature#main(String[]). + */ + private static void init(String[] args) + { + if (args == null || args.length != 2) + { + System.out.println("Verwendung: CreateXMLSignature "); + } + System.setProperty("moa.spss.server.configuration", args[0]); + System.setProperty("log4j.configuration", "file:" + args[1]); + } +} \ No newline at end of file diff --git a/spss/handbook/clients/api/src/main/java/at/gv/egovernment/moa/spss/handbook/clients/api/VerifyXMLSignature.java b/spss/handbook/clients/api/src/main/java/at/gv/egovernment/moa/spss/handbook/clients/api/VerifyXMLSignature.java new file mode 100644 index 000000000..fed8ba9f2 --- /dev/null +++ b/spss/handbook/clients/api/src/main/java/at/gv/egovernment/moa/spss/handbook/clients/api/VerifyXMLSignature.java @@ -0,0 +1,147 @@ +package at.gv.egovernment.moa.spss.handbook.clients.api; + +import java.io.FileInputStream; +import java.io.FileNotFoundException; +import java.util.HashMap; + +import at.gv.egovernment.moa.spss.MOAException; +import at.gv.egovernment.moa.spss.api.SPSSFactory; +import at.gv.egovernment.moa.spss.api.SignatureVerificationService; +import at.gv.egovernment.moa.spss.api.common.Content; +import at.gv.egovernment.moa.spss.api.common.SignerInfo; +import at.gv.egovernment.moa.spss.api.xmlverify.VerifySignatureInfo; +import at.gv.egovernment.moa.spss.api.xmlverify.VerifySignatureLocation; +import at.gv.egovernment.moa.spss.api.xmlverify.VerifyXMLSignatureRequest; +import at.gv.egovernment.moa.spss.api.xmlverify.VerifyXMLSignatureResponse; + +/** + * Dieses einfache Beispiel demonstriert grundlegend den Gebrauch der API von MOA SP/SS. + * Es wird damit eine einfach aufgebaute XML-Signatur geprüft. + */ + +public class VerifyXMLSignature +{ + /** + * Methode main. + * + * Enthält beispielhaften Code zum grundlegenden Gebrauch der API von MOA SP/SS. + * Es wird damit eine einfach aufgebaute XML-Signatur geprüft. + * + * ACHTUNG: Stellen Sie bei Verwendung von J2SE 1.4.x bzw. 5.x sicher, dass Sie die System-Property + * java.endorsed.dirs auf jenes Verzeichnis gesetzt haben, in dem sich die XPath- + * und XSLT-Bibliothek Xalan-J befindet. + * + * @param args
    + *
  • + * args[0] enthält einen Verweis auf die Konfigurations-Datei von MOA SP/SS Der Verweis + * enthält entweder eine absolute oder eine relative Pfadangabe, wobei eine relative + * Angabe als relativ zum Arbeitsverzeichnis der Java VM interpretiert wird. + *
  • + *
  • + * args[1] enthält einen Verweis auf die Konfigurations-Datei von Log4J, dem Logging- + * Framework, das von MOA SP/SS verwendet wird. Der Verweis enthält entweder eine + * absolute oder eine relative Pfadangabe, wobei eine relative Angabe als relativ zum + * Arbeitsverzeichnis der Java VM interpretiert wird. + *
  • + *
  • + * args[2] enthält Pfad und Dateiname des XML-Dokuments mit der darin enthaltenen, zu + * prüfenden XML-Signatur. Verwenden Sie z.B. das mit diesem Handbuch mitgelieferte + * Beispiel clients/api/signatures/SimpleSignature.xml. + *
  • + *
+ */ + public static void main(String[] args) + { + // Setzen der System-Properties + init(args); + + // Factory und Service instanzieren + SPSSFactory spssFac = SPSSFactory.getInstance(); + SignatureVerificationService sigVerifyService = SignatureVerificationService.getInstance(); + + // Content aus Dokument mit zu prüfender Signatur erstellen + FileInputStream sigDocFIS = null; + try + { + sigDocFIS = new FileInputStream(args[2]); + } + catch (FileNotFoundException e1) + { + System.err.println("XML-Dokument mit zu prüfender Signatur nicht gefunden: " + args[2]); + System.exit(-1); + } + Content sigDocContent = spssFac.createContent(sigDocFIS, null); + + // Position der zu prüfenden Signatur im Dokument angeben + // (Nachdem im XPath-Ausdruck ein NS-Präfix verwendet wird, muss in einer Lookup-Tabelle + // der damit bezeichnete Namenraum mitgegeben werden) + HashMap nSMap = new HashMap(); + nSMap.put("dsig", "http://www.w3.org/2000/09/xmldsig#"); + VerifySignatureLocation sigLocation = spssFac.createVerifySignatureLocation("//dsig:Signature", nSMap); + + // Zu prüfendes Dokument und Signaturposition zusammenfassen + VerifySignatureInfo sigInfo = spssFac.createVerifySignatureInfo(sigDocContent, sigLocation); + + // Prüfrequest zusammenstellen + VerifyXMLSignatureRequest verifyRequest = spssFac.createVerifyXMLSignatureRequest( + null, // Wird Prüfzeit nicht angegeben, wird aktuelle Zeit verwendet + sigInfo, + null, // Keine Ergänzungsobjekte notwendig + null, // Signaturmanifest-Prüfung soll nicht durchgeführt werden + false, // Hash-Inputdaten, d.h. tatsächlich signierte Daten werden nicht zurückgeliefert + "Test-Signaturdienste"); // ID des verwendeten Vertrauensprofils + + VerifyXMLSignatureResponse verifyResponse = null; + try + { + // Aufruf der Signaturprüfung + verifyResponse = sigVerifyService.verifyXMLSignature(verifyRequest); + } + catch (MOAException e) + { + // Service liefert Fehler + System.err.println("Die Signaturprüfung hat folgenden Fehler geliefert:"); + System.err.println("Fehlercode: " + e.getMessageId()); + System.err.println("Fehlernachricht: " + e.getMessage()); + System.exit(-1); + } + + // Auswertung der Response + System.out.println(); + System.out.println("Ergebnisse der Signaturprüfung:"); + System.out.println(); + + // Besondere Eigenschaften des Signatorzertifikats + SignerInfo signerInfo = verifyResponse.getSignerInfo(); + System.out.println("*** Ist Zertifikat des Signators qualifiziert? " + ((signerInfo.isQualifiedCertificate()) ? "ja" : "nein")); + System.out.println("*** Ist Zertifikat des Signators von einer Behörde? " + ((signerInfo.isPublicAuthority()) ? "ja" : "nein")); + + // Ergebnisse von Signatur- und Zertifikatsprüfung + System.out.println(); + System.out.println("Ergebniscode der Signaturprüfung: " + verifyResponse.getSignatureCheck().getCode()); + System.out.println("Ergebniscode der Zertifikatsprüfung: " + verifyResponse.getCertificateCheck().getCode()); + + // Signatorzertifikat + System.out.println(); + System.out.println("*** Zertifikat des Signators:"); + System.out.println("Aussteller: " + signerInfo.getSignerCertificate().getIssuerDN()); + System.out.println("Subject: " + signerInfo.getSignerCertificate().getSubjectDN()); + System.out.println("Seriennummer: " + signerInfo.getSignerCertificate().getSerialNumber()); + } + + /** + * Setzt die notwendigen System-Properties für die Konfiguration der MOA SP/SS API. + * + * @param args Siehe @link VerifyXMLSignature#main(String[]). + */ + private static void init(String[] args) + { + if (args == null || args.length != 3) + { + System.out.println("Verwendung: VerifyXMLSignature "); + System.exit(-1); + } + System.setProperty("moa.spss.server.configuration", args[0]); + System.setProperty("log4j.configuration", "file:" + args[1]); + } +} \ No newline at end of file -- cgit v1.2.3 From 60b674dd43d49347c75fac83e94ad42677bd43b8 Mon Sep 17 00:00:00 2001 From: pdanner Date: Tue, 4 Sep 2007 12:38:29 +0000 Subject: re-arranged handbook project step3 git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@982 d688527b-c9ab-4aba-bd8d-4036d912da1d --- spss/handbook/clients/api/pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'spss/handbook/clients/api') diff --git a/spss/handbook/clients/api/pom.xml b/spss/handbook/clients/api/pom.xml index 82a305275..4c1e831c1 100644 --- a/spss/handbook/clients/api/pom.xml +++ b/spss/handbook/clients/api/pom.xml @@ -1,8 +1,8 @@ - MOA - spss + MOA.spss.handbook.clients + moa-spss-handbook-clients 1.4.0 -- cgit v1.2.3 From 74a6925a47adaac292b3e2da326b08adc0239235 Mon Sep 17 00:00:00 2001 From: pdanner Date: Tue, 4 Sep 2007 13:55:12 +0000 Subject: version change to 1.4.1 git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@985 d688527b-c9ab-4aba-bd8d-4036d912da1d --- spss/handbook/clients/api/pom.xml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'spss/handbook/clients/api') diff --git a/spss/handbook/clients/api/pom.xml b/spss/handbook/clients/api/pom.xml index 4c1e831c1..a6ae7660b 100644 --- a/spss/handbook/clients/api/pom.xml +++ b/spss/handbook/clients/api/pom.xml @@ -1,21 +1,21 @@ - MOA.spss.handbook.clients - moa-spss-handbook-clients - 1.4.0 + MOA.spss.handbook.clients + moa-spss-handbook-clients + 1.4.1 4.0.0 MOA.spss.handbook moa-spss-handbook-apiClient jar - 1.4.0 + 1.4.1 MOA SP/SS Handbook API Client - - ${basedir}/../../../../../repository - + + ${basedir}/../../../../../repository + -- cgit v1.2.3 From 4e12d1df5daab1f7600fa3a58e6fc535375224ff Mon Sep 17 00:00:00 2001 From: pdanner Date: Mon, 10 Sep 2007 15:16:34 +0000 Subject: moved test classes, cashing of resolved entities git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@1002 d688527b-c9ab-4aba-bd8d-4036d912da1d --- spss/handbook/clients/api/pom.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'spss/handbook/clients/api') diff --git a/spss/handbook/clients/api/pom.xml b/spss/handbook/clients/api/pom.xml index a6ae7660b..c026cc939 100644 --- a/spss/handbook/clients/api/pom.xml +++ b/spss/handbook/clients/api/pom.xml @@ -3,14 +3,14 @@ MOA.spss.handbook.clients moa-spss-handbook-clients - 1.4.1 + 1.4 4.0.0 MOA.spss.handbook moa-spss-handbook-apiClient jar - 1.4.1 + 1.4 MOA SP/SS Handbook API Client @@ -120,7 +120,7 @@ MOA.spss.server moa-spss-lib - ${project.version} + 1.4.2 -- cgit v1.2.3 From b33fd8084f4ea1562c9056422ebc111b4a92f2a6 Mon Sep 17 00:00:00 2001 From: pdanner Date: Mon, 10 Sep 2007 18:08:08 +0000 Subject: moved test classes, fixed spss-tools build git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@1003 d688527b-c9ab-4aba-bd8d-4036d912da1d --- spss/handbook/clients/api/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spss/handbook/clients/api') diff --git a/spss/handbook/clients/api/pom.xml b/spss/handbook/clients/api/pom.xml index c026cc939..da9e7de7f 100644 --- a/spss/handbook/clients/api/pom.xml +++ b/spss/handbook/clients/api/pom.xml @@ -120,7 +120,7 @@ MOA.spss.server moa-spss-lib - 1.4.2 + -- cgit v1.2.3 From 20689558ce4a30b369644e9cf31619237490517f Mon Sep 17 00:00:00 2001 From: pdanner Date: Thu, 13 Sep 2007 09:36:37 +0000 Subject: went back to axis 1.0 in SP/SS (dsig-Namespaceproblem on provided Stylesheets), fixed bug in transactions entity-cache git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@1008 d688527b-c9ab-4aba-bd8d-4036d912da1d --- spss/handbook/clients/api/pom.xml | 256 ++++++++++++++++++++------------------ 1 file changed, 133 insertions(+), 123 deletions(-) (limited to 'spss/handbook/clients/api') diff --git a/spss/handbook/clients/api/pom.xml b/spss/handbook/clients/api/pom.xml index da9e7de7f..9b557a181 100644 --- a/spss/handbook/clients/api/pom.xml +++ b/spss/handbook/clients/api/pom.xml @@ -1,127 +1,137 @@ - - - MOA.spss.handbook.clients - moa-spss-handbook-clients - 1.4 - + + + MOA.spss.handbook.clients + moa-spss-handbook-clients + 1.4 + + + 4.0.0 + MOA.spss.handbook + moa-spss-handbook-apiClient + jar + 1.4 + MOA SP/SS Handbook API Client - 4.0.0 - MOA.spss.handbook - moa-spss-handbook-apiClient - jar - 1.4 - MOA SP/SS Handbook API Client + + ${basedir}/../../../../../repository + - - ${basedir}/../../../../../repository - - - - - axis - axis - - - commons-discovery - commons-discovery - - - commons-logging - commons-logging - - - javax.activation - activation - - - javax.mail - mail - - - junit - junit - - - log4j - log4j - - - postgresql - postgresql - - - javax.servlet - servlet-api - provided - - - xalan-bin-dist - xalan - compile - - - xerces - xercesImpl - - - xalan-bin-dist - xml-apis - - - xalan-bin-dist - serializer - - - iaik.prod - iaik_moa - - - iaik.prod - iaik_ixsil - - - iaik.prod - iaik_jce_full - compile - - - iaik.prod - iaik_ecc - compile - - - iaik.prod - iaik_cms - runtime - - - iaik.prod - iaik_Pkcs11Provider - runtime - - - iaik.prod - iaik_Pkcs11Wrapper - runtime - - - iaik.prod - iaik_Pkcs11Wrapper - win32 - dll - runtime - true - - - MOA - moa-common - - - MOA.spss.server - moa-spss-lib - - - + + + axis + axis + + + axis + axis-jaxrpc + + + axis + axis-saaj + + + axis + axis-wsdl4j + + + commons-discovery + commons-discovery + + + commons-logging + commons-logging + + + javax.activation + activation + + + javax.mail + mail + + + junit + junit + + + log4j + log4j + + + postgresql + postgresql + + + javax.servlet + servlet-api + provided + + + xalan-bin-dist + xalan + compile + + + xerces + xercesImpl + + + xalan-bin-dist + xml-apis + + + xalan-bin-dist + serializer + + + iaik.prod + iaik_moa + + + iaik.prod + iaik_ixsil + + + iaik.prod + iaik_jce_full + compile + + + iaik.prod + iaik_ecc + compile + + + iaik.prod + iaik_cms + runtime + + + iaik.prod + iaik_Pkcs11Provider + runtime + + + iaik.prod + iaik_Pkcs11Wrapper + runtime + + + iaik.prod + iaik_Pkcs11Wrapper + win32 + dll + runtime + true + + + MOA + moa-common + + + MOA.spss.server + moa-spss-lib + + -- cgit v1.2.3 From 83f01ddf24d98dbb5df41fb627a14edee2d57df7 Mon Sep 17 00:00:00 2001 From: pdanner Date: Wed, 17 Oct 2007 16:18:44 +0000 Subject: Implemented and integrated party representation and integrated mandates as per default available Now Eclipse projects are available. The Web Tools Platform can be used to run the web applications git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@1014 d688527b-c9ab-4aba-bd8d-4036d912da1d --- spss/handbook/clients/api/.classpath | 6 ++++++ spss/handbook/clients/api/.project | 23 +++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 spss/handbook/clients/api/.classpath create mode 100644 spss/handbook/clients/api/.project (limited to 'spss/handbook/clients/api') diff --git a/spss/handbook/clients/api/.classpath b/spss/handbook/clients/api/.classpath new file mode 100644 index 000000000..d8f291998 --- /dev/null +++ b/spss/handbook/clients/api/.classpath @@ -0,0 +1,6 @@ + + + + + + diff --git a/spss/handbook/clients/api/.project b/spss/handbook/clients/api/.project new file mode 100644 index 000000000..e46cff8c4 --- /dev/null +++ b/spss/handbook/clients/api/.project @@ -0,0 +1,23 @@ + + + moa-spss-handbook-apiClient + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.maven.ide.eclipse.maven2Builder + + + + + + org.eclipse.jdt.core.javanature + org.maven.ide.eclipse.maven2Nature + + -- cgit v1.2.3 From afcd856e186b9fd5d8dfcb0f3e6f3599ca920b51 Mon Sep 17 00:00:00 2001 From: mcentner Date: Thu, 28 Aug 2008 07:55:59 +0000 Subject: Added copyright and license header to all java source files. git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@1087 d688527b-c9ab-4aba-bd8d-4036d912da1d --- .../moa/spss/handbook/clients/api/CreateXMLSignature.java | 15 +++++++++++++++ .../moa/spss/handbook/clients/api/VerifyXMLSignature.java | 15 +++++++++++++++ 2 files changed, 30 insertions(+) (limited to 'spss/handbook/clients/api') diff --git a/spss/handbook/clients/api/src/main/java/at/gv/egovernment/moa/spss/handbook/clients/api/CreateXMLSignature.java b/spss/handbook/clients/api/src/main/java/at/gv/egovernment/moa/spss/handbook/clients/api/CreateXMLSignature.java index 2534e4913..bed9a0caa 100644 --- a/spss/handbook/clients/api/src/main/java/at/gv/egovernment/moa/spss/handbook/clients/api/CreateXMLSignature.java +++ b/spss/handbook/clients/api/src/main/java/at/gv/egovernment/moa/spss/handbook/clients/api/CreateXMLSignature.java @@ -1,3 +1,18 @@ +/* +* Copyright 2003 Federal Chancellery Austria +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ package at.gv.egovernment.moa.spss.handbook.clients.api; import java.io.ByteArrayInputStream; diff --git a/spss/handbook/clients/api/src/main/java/at/gv/egovernment/moa/spss/handbook/clients/api/VerifyXMLSignature.java b/spss/handbook/clients/api/src/main/java/at/gv/egovernment/moa/spss/handbook/clients/api/VerifyXMLSignature.java index fed8ba9f2..4bb661142 100644 --- a/spss/handbook/clients/api/src/main/java/at/gv/egovernment/moa/spss/handbook/clients/api/VerifyXMLSignature.java +++ b/spss/handbook/clients/api/src/main/java/at/gv/egovernment/moa/spss/handbook/clients/api/VerifyXMLSignature.java @@ -1,3 +1,18 @@ +/* +* Copyright 2003 Federal Chancellery Austria +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ package at.gv.egovernment.moa.spss.handbook.clients.api; import java.io.FileInputStream; -- cgit v1.2.3 From aebb5cd04d43b25b8d65237ba49fddf5f5dd1a8c Mon Sep 17 00:00:00 2001 From: kstranacher Date: Tue, 7 Jul 2009 14:27:40 +0000 Subject: git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@1114 d688527b-c9ab-4aba-bd8d-4036d912da1d --- spss/handbook/clients/api/.classpath | 3 ++- spss/handbook/clients/api/.project | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'spss/handbook/clients/api') diff --git a/spss/handbook/clients/api/.classpath b/spss/handbook/clients/api/.classpath index d8f291998..8619241eb 100644 --- a/spss/handbook/clients/api/.classpath +++ b/spss/handbook/clients/api/.classpath @@ -1,6 +1,7 @@ - + + diff --git a/spss/handbook/clients/api/.project b/spss/handbook/clients/api/.project index e46cff8c4..ec6e1354b 100644 --- a/spss/handbook/clients/api/.project +++ b/spss/handbook/clients/api/.project @@ -5,6 +5,11 @@ + + org.eclipse.wst.common.project.facet.core.builder + + + org.eclipse.jdt.core.javabuilder @@ -19,5 +24,6 @@ org.eclipse.jdt.core.javanature org.maven.ide.eclipse.maven2Nature + org.eclipse.wst.common.project.facet.core.nature -- cgit v1.2.3 From b96b2ef653f6bc62ca8a7880dde525dc44d9a8b7 Mon Sep 17 00:00:00 2001 From: kstranacher Date: Mon, 10 Aug 2009 09:23:17 +0000 Subject: git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@1123 d688527b-c9ab-4aba-bd8d-4036d912da1d --- spss/handbook/clients/api/.settings/org.eclipse.jdt.core.prefs | 5 +++++ spss/handbook/clients/api/.settings/org.maven.ide.eclipse.prefs | 9 +++++++++ 2 files changed, 14 insertions(+) create mode 100644 spss/handbook/clients/api/.settings/org.eclipse.jdt.core.prefs create mode 100644 spss/handbook/clients/api/.settings/org.maven.ide.eclipse.prefs (limited to 'spss/handbook/clients/api') diff --git a/spss/handbook/clients/api/.settings/org.eclipse.jdt.core.prefs b/spss/handbook/clients/api/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 000000000..99e7590e6 --- /dev/null +++ b/spss/handbook/clients/api/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,5 @@ +#Tue Jul 07 16:07:23 CEST 2009 +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.4 +org.eclipse.jdt.core.compiler.compliance=1.4 +org.eclipse.jdt.core.compiler.source=1.4 diff --git a/spss/handbook/clients/api/.settings/org.maven.ide.eclipse.prefs b/spss/handbook/clients/api/.settings/org.maven.ide.eclipse.prefs new file mode 100644 index 000000000..1964c59a4 --- /dev/null +++ b/spss/handbook/clients/api/.settings/org.maven.ide.eclipse.prefs @@ -0,0 +1,9 @@ +#Tue Jul 07 16:06:54 CEST 2009 +activeProfiles= +eclipse.preferences.version=1 +fullBuildGoals=process-test-resources +includeModules=false +resolveWorkspaceProjects=true +resourceFilterGoals=process-resources resources\:testResources +skipCompilerPlugin=true +version=1 -- cgit v1.2.3 From 2a31c88fda199a37fb7136d86100a9c330e5de34 Mon Sep 17 00:00:00 2001 From: kstranacher Date: Mon, 28 Mar 2011 17:22:32 +0000 Subject: git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@1197 d688527b-c9ab-4aba-bd8d-4036d912da1d --- spss/handbook/clients/api/pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'spss/handbook/clients/api') diff --git a/spss/handbook/clients/api/pom.xml b/spss/handbook/clients/api/pom.xml index 9b557a181..6a38fbb2d 100644 --- a/spss/handbook/clients/api/pom.xml +++ b/spss/handbook/clients/api/pom.xml @@ -2,14 +2,14 @@ MOA.spss.handbook.clients moa-spss-handbook-clients - 1.4 + 1.5 4.0.0 MOA.spss.handbook moa-spss-handbook-apiClient jar - 1.4 + 1.5 MOA SP/SS Handbook API Client -- cgit v1.2.3