add ignored testcase for multiple signatures
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1722497 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
318f0b35b8
commit
006595947d
@ -82,12 +82,13 @@ import org.apache.xmlbeans.XmlObject;
|
||||
import org.bouncycastle.asn1.x509.KeyUsage;
|
||||
import org.bouncycastle.cert.ocsp.OCSPResp;
|
||||
import org.etsi.uri.x01903.v13.DigestAlgAndValueType;
|
||||
import org.etsi.uri.x01903.v13.QualifyingPropertiesType;
|
||||
import org.junit.Assume;
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
import org.w3.x2000.x09.xmldsig.ReferenceType;
|
||||
import org.w3.x2000.x09.xmldsig.SignatureDocument;
|
||||
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;
|
||||
|
||||
public class TestSignatureInfo {
|
||||
@ -576,12 +577,28 @@ public class TestSignatureInfo {
|
||||
si.confirmSignature();
|
||||
assertTrue("invalid signature", si.verifySignature());
|
||||
|
||||
pkg.close();
|
||||
}
|
||||
|
||||
|
||||
private void sign(OPCPackage pkgCopy, String alias, String signerDn, int signerCount) throws Exception {
|
||||
initKeyPair(alias, signerDn);
|
||||
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);
|
||||
|
||||
SignatureConfig signatureConfig = new SignatureConfig();
|
||||
signatureConfig.setKey(keyPair.getPrivate());
|
||||
|
Loading…
Reference in New Issue
Block a user