aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--moaSig/libs/iaik_cms-6.0_moa.jarbin501606 -> 0 bytes
-rw-r--r--moaSig/libs/iaik_cms-6.1_moa.jarbin0 -> 413434 bytes
-rw-r--r--moaSig/libs/iaik_eccelerate-6.3.0_eval.jarbin807993 -> 0 bytes
-rw-r--r--moaSig/libs/iaik_eccelerate-6.3.2_eval.jarbin0 -> 806569 bytes
-rw-r--r--moaSig/libs/iaik_eccelerate_addon-6.3.0_eval.jarbin98152 -> 0 bytes
-rw-r--r--moaSig/libs/iaik_eccelerate_addon-6.3.2_eval.jarbin0 -> 96721 bytes
-rw-r--r--moaSig/moa-sig/src/test/java/at/gv/egovernment/moa/spss/test/integration/PadesIntegrationTest.java80
-rw-r--r--release-infos/endorsed_libs/serializer-2.7.1.jarbin278281 -> 0 bytes
-rw-r--r--release-infos/endorsed_libs/xalan-2.7.1.jarbin3176148 -> 0 bytes
-rw-r--r--release-infos/endorsed_libs/xercesImpl-2.12.2.jarbin1446149 -> 0 bytes
-rw-r--r--release-infos/endorsed_libs/xml-apis-1.4.01.jarbin220536 -> 0 bytes
-rw-r--r--release-infos/ext_libs/iaikPkcs11Wrapper.jarbin1503554 -> 0 bytes
-rw-r--r--release-infos/ext_libs/iaik_Pkcs11Provider.jar (renamed from release-infos/ext_libs/iaikPkcs11Provider.jar)bin528244 -> 528244 bytes
-rw-r--r--release-infos/ext_libs/iaik_Pkcs11Wrapper.jarbin0 -> 1931617 bytes
-rw-r--r--release-infos/pkcs11/pkcs11-natives.zipbin0 -> 291568 bytes
-rwxr-xr-xrelease-infos/pkcs11/unix/linux-x86/debug/libpkcs11wrapper.sobin382140 -> 0 bytes
-rwxr-xr-xrelease-infos/pkcs11/unix/linux-x86/release/libpkcs11wrapper.sobin187060 -> 0 bytes
-rwxr-xr-xrelease-infos/pkcs11/unix/linux-x86_64/debug/libpkcs11wrapper.sobin410952 -> 0 bytes
-rwxr-xr-xrelease-infos/pkcs11/unix/linux-x86_64/release/libpkcs11wrapper.sobin207520 -> 0 bytes
-rwxr-xr-xrelease-infos/pkcs11/unix/macosx_universal/debug/libpkcs11wrapper.jnilibbin603957 -> 0 bytes
-rwxr-xr-xrelease-infos/pkcs11/unix/macosx_universal/release/libpkcs11wrapper.jnilibbin455621 -> 0 bytes
-rwxr-xr-xrelease-infos/pkcs11/windows/win-x86/debug/pkcs11wrapper.dllbin613038 -> 0 bytes
-rwxr-xr-xrelease-infos/pkcs11/windows/win-x86/release/pkcs11wrapper.dllbin251488 -> 0 bytes
-rwxr-xr-xrelease-infos/pkcs11/windows/win-x86_64/debug/pkcs11wrapper.dllbin656400 -> 0 bytes
-rwxr-xr-xrelease-infos/pkcs11/windows/win-x86_64/release/pkcs11wrapper.dllbin262536 -> 0 bytes
25 files changed, 38 insertions, 42 deletions
diff --git a/moaSig/libs/iaik_cms-6.0_moa.jar b/moaSig/libs/iaik_cms-6.0_moa.jar
deleted file mode 100644
index f11b250..0000000
--- a/moaSig/libs/iaik_cms-6.0_moa.jar
+++ /dev/null
Binary files differ
diff --git a/moaSig/libs/iaik_cms-6.1_moa.jar b/moaSig/libs/iaik_cms-6.1_moa.jar
new file mode 100644
index 0000000..8f5b167
--- /dev/null
+++ b/moaSig/libs/iaik_cms-6.1_moa.jar
Binary files differ
diff --git a/moaSig/libs/iaik_eccelerate-6.3.0_eval.jar b/moaSig/libs/iaik_eccelerate-6.3.0_eval.jar
deleted file mode 100644
index 4422430..0000000
--- a/moaSig/libs/iaik_eccelerate-6.3.0_eval.jar
+++ /dev/null
Binary files differ
diff --git a/moaSig/libs/iaik_eccelerate-6.3.2_eval.jar b/moaSig/libs/iaik_eccelerate-6.3.2_eval.jar
new file mode 100644
index 0000000..7cf380f
--- /dev/null
+++ b/moaSig/libs/iaik_eccelerate-6.3.2_eval.jar
Binary files differ
diff --git a/moaSig/libs/iaik_eccelerate_addon-6.3.0_eval.jar b/moaSig/libs/iaik_eccelerate_addon-6.3.0_eval.jar
deleted file mode 100644
index 182a150..0000000
--- a/moaSig/libs/iaik_eccelerate_addon-6.3.0_eval.jar
+++ /dev/null
Binary files differ
diff --git a/moaSig/libs/iaik_eccelerate_addon-6.3.2_eval.jar b/moaSig/libs/iaik_eccelerate_addon-6.3.2_eval.jar
new file mode 100644
index 0000000..9216303
--- /dev/null
+++ b/moaSig/libs/iaik_eccelerate_addon-6.3.2_eval.jar
Binary files differ
diff --git a/moaSig/moa-sig/src/test/java/at/gv/egovernment/moa/spss/test/integration/PadesIntegrationTest.java b/moaSig/moa-sig/src/test/java/at/gv/egovernment/moa/spss/test/integration/PadesIntegrationTest.java
index 9cee722..0c7bb63 100644
--- a/moaSig/moa-sig/src/test/java/at/gv/egovernment/moa/spss/test/integration/PadesIntegrationTest.java
+++ b/moaSig/moa-sig/src/test/java/at/gv/egovernment/moa/spss/test/integration/PadesIntegrationTest.java
@@ -9,9 +9,6 @@ import static org.junit.Assert.assertTrue;
import java.io.FileInputStream;
import java.io.IOException;
-import java.security.cert.Certificate;
-import java.security.cert.CertificateException;
-import java.util.Base64;
import java.util.Date;
import org.apache.commons.io.IOUtils;
@@ -31,19 +28,14 @@ import at.gv.egovernment.moa.spss.api.cmsverify.VerifyCMSSignatureResponseElemen
import at.gv.egovernment.moa.spss.api.xmlverify.AdESFormResults;
import at.gv.egovernment.moa.spss.server.config.ConfigurationException;
import at.gv.egovernment.moa.spss.server.config.ConfigurationProvider;
-import at.gv.egovernment.moa.spss.server.iaik.cmsverify.PDFSignatureVerificationProfileImpl;
import at.gv.egovernment.moa.spss.server.iaik.pki.PKIProfileImpl;
import at.gv.egovernment.moa.spss.server.init.SystemInitializer;
import at.gv.egovernment.moa.spss.server.invoke.CMSSignatureVerificationInvoker;
import at.gv.egovernment.moa.spss.server.logging.TransactionId;
-import at.gv.egovernment.moa.spss.server.transaction.TransactionContext;
-import at.gv.egovernment.moa.spss.server.transaction.TransactionContextManager;
+import at.gv.egovernment.moa.spss.test.integration.utils.CertificateReader;
import iaik.pki.PKIFactory;
import iaik.pki.PKIModule;
-import iaik.pki.PKIResult;
-import iaik.server.cmspdfverify.CMSVerifyUtils;
import iaik.x509.X509Certificate;
-import at.gv.egovernment.moa.spss.test.integration.utils.CertificateReader;
@RunWith(BlockJUnit4ClassRunner.class)
public class PadesIntegrationTest extends AbstractIntegrationTest {
@@ -51,16 +43,16 @@ public class PadesIntegrationTest extends AbstractIntegrationTest {
CMSSignatureVerificationInvoker cadesInvoker;
@BeforeClass
- public static void classInitializer() throws IOException, ConfigurationException,
+ public static void classInitializer() throws IOException, ConfigurationException,
NoSuchFieldException, SecurityException, IllegalArgumentException, IllegalAccessException {
jvmStateReset();
-
+
final String current = new java.io.File(".").getCanonicalPath();
System.setProperty("moa.spss.server.configuration",
current + "/src/test/resources/moaspss_config/MOASPSSConfiguration.xml");
System.setProperty("iaik.esi.sva.configuration.location",
current + "/src/test/resources/moaspss_config/svaconfig.example");
-
+
moaSpssCore = SystemInitializer.init();
}
@@ -162,7 +154,7 @@ public class PadesIntegrationTest extends AbstractIntegrationTest {
assertNotNull("extended val. result", cmsResult.getExtendedCertificateCheck());
assertEquals("ext. val major", 1, cmsResult.getExtendedCertificateCheck().getMajorCode());
-
+
// because was signed by using SHA1 after xxxx
assertEquals("ext. val major", 2, cmsResult.getExtendedCertificateCheck().getMinorCode());
@@ -170,9 +162,9 @@ public class PadesIntegrationTest extends AbstractIntegrationTest {
assertEquals("used sig alg", "SHA1withRSA", cmsResult.getSignatureAlgorithm());
}
-
-
-
+
+
+
@Ignore
@Test
public void padesLteTest() throws MOAException, IOException {
@@ -188,10 +180,10 @@ public class PadesIntegrationTest extends AbstractIntegrationTest {
// verify result
assertNotNull("verification result", result);
-
+
}
-
+
@Test
public void padesAmtssignatur() throws MOAException, IOException {
final VerifyCMSSignatureRequest request = buildVerfifyCmsRequest(
@@ -203,7 +195,7 @@ public class PadesIntegrationTest extends AbstractIntegrationTest {
// perform test
final VerifyCMSSignatureResponse result = cadesInvoker.verifyCMSSignature(request);
-
+
// verify result
assertNotNull("verification result", result);
@@ -211,21 +203,21 @@ public class PadesIntegrationTest extends AbstractIntegrationTest {
.getResponseElements().get(0);
assertEquals("sigCode", 0, cmsResult.getSignatureCheck().getCode());
assertEquals("certCode", 0, cmsResult.getCertificateCheck().getCode());
-
+
assertTrue("Amtssignatur", cmsResult.getSignerInfo().isPublicAuthority());
assertEquals("Amtssignatur", "L4AL", cmsResult.getSignerInfo().getPublicAuhtorityID());
-
+
assertFalse("QC", cmsResult.getSignerInfo().isQualifiedCertificate());
assertFalse("SSCD", cmsResult.getSignerInfo().isSSCD());
-
+
assertEquals("CountryCode", "AT", cmsResult.getSignerInfo().getIssuerCountryCode());
-
+
assertNotNull("extended val. result", cmsResult.getExtendedCertificateCheck());
assertEquals("ext. val major", 2, cmsResult.getExtendedCertificateCheck().getMajorCode());
-
- // it's no valid CAdES signature because it does not include SignatureCertificateInfo extension
+
+ // it's no valid CAdES signature because it does not include SignatureCertificateInfo extension
assertEquals("ext. val major", 13, cmsResult.getExtendedCertificateCheck().getMinorCode());
-
+
assertNotNull("form val. result", cmsResult.getAdESFormResults());
assertEquals("form val. result size", 4, cmsResult.getAdESFormResults().size());
@@ -234,9 +226,9 @@ public class PadesIntegrationTest extends AbstractIntegrationTest {
assertEquals("Find wrong form val status", 2, ((AdESFormResults) el).getCode().longValue());
}
-
+
}
-
+
@Ignore
@Test
public void padesOwnTest() throws Exception {
@@ -257,26 +249,30 @@ public class PadesIntegrationTest extends AbstractIntegrationTest {
assertEquals("sigCode", 0, cmsResult.getSignatureCheck().getCode());
assertEquals("certCode", 0, cmsResult.getCertificateCheck().getCode());
assertEquals("Amtssignatur", "", cmsResult.getSignerInfo().getPublicAuhtorityID());
-
+
}
-
+
@Ignore
@Test
public void pkixTest() throws Exception {
- final String current = new java.io.File(".").getCanonicalPath();
- X509Certificate[] chain = CertificateReader.readCertificatesIntoArray(current + "/src/test/resources/testdata/pkix/chain/");
-
+ final String current = new java.io.File(".").getCanonicalPath();
+ X509Certificate[] chain = CertificateReader.readCertificatesIntoArray(current + "/src/test/resources/testdata/pkix/chain/");
+
PKIModule pkiModule = PKIFactory.getInstance().getPKIModule(
new PKIProfileImpl(ConfigurationProvider.getInstance(), "MOAIDBuergerkarteAuthentisierungsDaten"));
- PKIResult pkiResult = pkiModule.validateCertificate(
- new Date(),
- (X509Certificate) chain[0],
- (X509Certificate[]) ArrayUtils.subarray(chain, 1, chain.length),
- (boolean[])null,
- new TransactionId("aabbccdd"));
-
+
+ //KeyUsageParams keyUsage = new KeyUsageParams();
+ //keyUsage.addParam(new KeyUsageParam((boolean[]) null, KeyUsageParam.STRICT));
+
+ pkiModule.validateCertificate(
+ new Date(),
+ chain[0],
+ ArrayUtils.subarray(chain, 1, chain.length),
+ (boolean[]) null,
+ new TransactionId("aabbccdd"));
+
System.out.print("Finished");
-
+
}
-
+
}
diff --git a/release-infos/endorsed_libs/serializer-2.7.1.jar b/release-infos/endorsed_libs/serializer-2.7.1.jar
deleted file mode 100644
index 99f98db..0000000
--- a/release-infos/endorsed_libs/serializer-2.7.1.jar
+++ /dev/null
Binary files differ
diff --git a/release-infos/endorsed_libs/xalan-2.7.1.jar b/release-infos/endorsed_libs/xalan-2.7.1.jar
deleted file mode 100644
index 458fa73..0000000
--- a/release-infos/endorsed_libs/xalan-2.7.1.jar
+++ /dev/null
Binary files differ
diff --git a/release-infos/endorsed_libs/xercesImpl-2.12.2.jar b/release-infos/endorsed_libs/xercesImpl-2.12.2.jar
deleted file mode 100644
index ccbae9f..0000000
--- a/release-infos/endorsed_libs/xercesImpl-2.12.2.jar
+++ /dev/null
Binary files differ
diff --git a/release-infos/endorsed_libs/xml-apis-1.4.01.jar b/release-infos/endorsed_libs/xml-apis-1.4.01.jar
deleted file mode 100644
index 4673346..0000000
--- a/release-infos/endorsed_libs/xml-apis-1.4.01.jar
+++ /dev/null
Binary files differ
diff --git a/release-infos/ext_libs/iaikPkcs11Wrapper.jar b/release-infos/ext_libs/iaikPkcs11Wrapper.jar
deleted file mode 100644
index 6543602..0000000
--- a/release-infos/ext_libs/iaikPkcs11Wrapper.jar
+++ /dev/null
Binary files differ
diff --git a/release-infos/ext_libs/iaikPkcs11Provider.jar b/release-infos/ext_libs/iaik_Pkcs11Provider.jar
index 8d09063..8d09063 100644
--- a/release-infos/ext_libs/iaikPkcs11Provider.jar
+++ b/release-infos/ext_libs/iaik_Pkcs11Provider.jar
Binary files differ
diff --git a/release-infos/ext_libs/iaik_Pkcs11Wrapper.jar b/release-infos/ext_libs/iaik_Pkcs11Wrapper.jar
new file mode 100644
index 0000000..4daae43
--- /dev/null
+++ b/release-infos/ext_libs/iaik_Pkcs11Wrapper.jar
Binary files differ
diff --git a/release-infos/pkcs11/pkcs11-natives.zip b/release-infos/pkcs11/pkcs11-natives.zip
new file mode 100644
index 0000000..1cc1603
--- /dev/null
+++ b/release-infos/pkcs11/pkcs11-natives.zip
Binary files differ
diff --git a/release-infos/pkcs11/unix/linux-x86/debug/libpkcs11wrapper.so b/release-infos/pkcs11/unix/linux-x86/debug/libpkcs11wrapper.so
deleted file mode 100755
index 778ac22..0000000
--- a/release-infos/pkcs11/unix/linux-x86/debug/libpkcs11wrapper.so
+++ /dev/null
Binary files differ
diff --git a/release-infos/pkcs11/unix/linux-x86/release/libpkcs11wrapper.so b/release-infos/pkcs11/unix/linux-x86/release/libpkcs11wrapper.so
deleted file mode 100755
index 0d3e88f..0000000
--- a/release-infos/pkcs11/unix/linux-x86/release/libpkcs11wrapper.so
+++ /dev/null
Binary files differ
diff --git a/release-infos/pkcs11/unix/linux-x86_64/debug/libpkcs11wrapper.so b/release-infos/pkcs11/unix/linux-x86_64/debug/libpkcs11wrapper.so
deleted file mode 100755
index f0d6399..0000000
--- a/release-infos/pkcs11/unix/linux-x86_64/debug/libpkcs11wrapper.so
+++ /dev/null
Binary files differ
diff --git a/release-infos/pkcs11/unix/linux-x86_64/release/libpkcs11wrapper.so b/release-infos/pkcs11/unix/linux-x86_64/release/libpkcs11wrapper.so
deleted file mode 100755
index 407e097..0000000
--- a/release-infos/pkcs11/unix/linux-x86_64/release/libpkcs11wrapper.so
+++ /dev/null
Binary files differ
diff --git a/release-infos/pkcs11/unix/macosx_universal/debug/libpkcs11wrapper.jnilib b/release-infos/pkcs11/unix/macosx_universal/debug/libpkcs11wrapper.jnilib
deleted file mode 100755
index 2778819..0000000
--- a/release-infos/pkcs11/unix/macosx_universal/debug/libpkcs11wrapper.jnilib
+++ /dev/null
Binary files differ
diff --git a/release-infos/pkcs11/unix/macosx_universal/release/libpkcs11wrapper.jnilib b/release-infos/pkcs11/unix/macosx_universal/release/libpkcs11wrapper.jnilib
deleted file mode 100755
index 0735243..0000000
--- a/release-infos/pkcs11/unix/macosx_universal/release/libpkcs11wrapper.jnilib
+++ /dev/null
Binary files differ
diff --git a/release-infos/pkcs11/windows/win-x86/debug/pkcs11wrapper.dll b/release-infos/pkcs11/windows/win-x86/debug/pkcs11wrapper.dll
deleted file mode 100755
index 98926ca..0000000
--- a/release-infos/pkcs11/windows/win-x86/debug/pkcs11wrapper.dll
+++ /dev/null
Binary files differ
diff --git a/release-infos/pkcs11/windows/win-x86/release/pkcs11wrapper.dll b/release-infos/pkcs11/windows/win-x86/release/pkcs11wrapper.dll
deleted file mode 100755
index d035759..0000000
--- a/release-infos/pkcs11/windows/win-x86/release/pkcs11wrapper.dll
+++ /dev/null
Binary files differ
diff --git a/release-infos/pkcs11/windows/win-x86_64/debug/pkcs11wrapper.dll b/release-infos/pkcs11/windows/win-x86_64/debug/pkcs11wrapper.dll
deleted file mode 100755
index 7ccecc3..0000000
--- a/release-infos/pkcs11/windows/win-x86_64/debug/pkcs11wrapper.dll
+++ /dev/null
Binary files differ
diff --git a/release-infos/pkcs11/windows/win-x86_64/release/pkcs11wrapper.dll b/release-infos/pkcs11/windows/win-x86_64/release/pkcs11wrapper.dll
deleted file mode 100755
index eab4129..0000000
--- a/release-infos/pkcs11/windows/win-x86_64/release/pkcs11wrapper.dll
+++ /dev/null
Binary files differ