mirror of
https://github.com/apache/poi.git
synced 2026-02-27 20:40:08 +08:00
#62994 - IBM JCE workarounds
add policy restriction exemption git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1848539 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
397e568656
commit
28085415f5
@ -60,6 +60,7 @@ import javax.xml.crypto.dsig.CanonicalizationMethod;
|
||||
import javax.xml.crypto.dsig.dom.DOMSignContext;
|
||||
|
||||
import org.apache.jcp.xml.dsig.internal.dom.DOMSignedInfo;
|
||||
import org.apache.poi.EncryptedDocumentException;
|
||||
import org.apache.poi.POIDataSamples;
|
||||
import org.apache.poi.POITestCase;
|
||||
import org.apache.poi.ooxml.util.DocumentHelper;
|
||||
@ -682,6 +683,8 @@ public class TestSignatureInfo {
|
||||
si.confirmSignature();
|
||||
boolean b = si.verifySignature();
|
||||
assertTrue("Signature not correctly calculated for " + ha, b);
|
||||
} catch (EncryptedDocumentException e) {
|
||||
Assume.assumeTrue(e.getMessage().startsWith("Export Restrictions"));
|
||||
} finally {
|
||||
if (pkg != null) {
|
||||
pkg.close();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user