]> source.dussan.org Git - poi.git/commitdiff
add ignored testcase for multiple signatures
authorAndreas Beeker <kiwiwings@apache.org>
Fri, 1 Jan 2016 15:04:06 +0000 (15:04 +0000)
committerAndreas Beeker <kiwiwings@apache.org>
Fri, 1 Jan 2016 15:04:06 +0000 (15:04 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1722497 13f79535-47bb-0310-9956-ffa450edef68

src/ooxml/testcases/org/apache/poi/poifs/crypt/TestSignatureInfo.java

index d2fead012d3bea87410fc0fcdd0027c033a85554..d8933f76df88025dd993ca4a665af9ed245be3cb 100644 (file)
@@ -82,12 +82,13 @@ import org.apache.xmlbeans.XmlObject;
 import org.bouncycastle.asn1.x509.KeyUsage;\r
 import org.bouncycastle.cert.ocsp.OCSPResp;\r
 import org.etsi.uri.x01903.v13.DigestAlgAndValueType;\r
-import org.etsi.uri.x01903.v13.QualifyingPropertiesType;\r
-import org.junit.Assume;\r
-import org.junit.BeforeClass;\r
-import org.junit.Test;\r
-import org.w3.x2000.x09.xmldsig.ReferenceType;\r
-import org.w3.x2000.x09.xmldsig.SignatureDocument;\r
+import org.etsi.uri.x01903.v13.QualifyingPropertiesType;
+import org.junit.Assume;
+import org.junit.BeforeClass;
+import org.junit.Ignore;
+import org.junit.Test;
+import org.w3.x2000.x09.xmldsig.ReferenceType;
+import org.w3.x2000.x09.xmldsig.SignatureDocument;
 import org.w3c.dom.Document;\r
 \r
 public class TestSignatureInfo {\r
@@ -576,12 +577,28 @@ public class TestSignatureInfo {
         si.confirmSignature();\r
         assertTrue("invalid signature", si.verifySignature());\r
         \r
-        pkg.close();\r
-    }\r
-    \r
-    \r
-    private void sign(OPCPackage pkgCopy, String alias, String signerDn, int signerCount) throws Exception {\r
-        initKeyPair(alias, signerDn);\r
+        pkg.close();
+    }
+    
+    @Test
+    @Ignore
+    public void testMultiSign() throws Exception {
+        initKeyPair("KeyA", "CN=KeyA");
+        KeyPair keyPairA = keyPair;
+        X509Certificate x509A = x509;
+        initKeyPair("KeyB", "CN=KeyB");
+        KeyPair keyPairB = keyPair;
+        X509Certificate x509B = x509;
+        
+        File tpl = copy(testdata.getFile("bug58630.xlsx"));
+        OPCPackage pkg = OPCPackage.open(tpl);
+        SignatureConfig signatureConfig = new SignatureConfig();
+        
+        
+    }
+    
+    private void sign(OPCPackage pkgCopy, String alias, String signerDn, int signerCount) throws Exception {
+        initKeyPair(alias, signerDn);
 \r
         SignatureConfig signatureConfig = new SignatureConfig();\r
         signatureConfig.setKey(keyPair.getPrivate());\r