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
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