diff options
author | Andreas Beeker <kiwiwings@apache.org> | 2018-12-09 22:33:30 +0000 |
---|---|---|
committer | Andreas Beeker <kiwiwings@apache.org> | 2018-12-09 22:33:30 +0000 |
commit | 28085415f584597166a9fff1f61fbb2fd1564807 (patch) | |
tree | e89eaf03e2ac0e5c0bd212652ee649ca06cdceba /src/ooxml/testcases/org/apache/poi/poifs | |
parent | 397e56865629e720e934549dfed460eaf606ad0a (diff) | |
download | poi-28085415f584597166a9fff1f61fbb2fd1564807.tar.gz poi-28085415f584597166a9fff1f61fbb2fd1564807.zip |
#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
Diffstat (limited to 'src/ooxml/testcases/org/apache/poi/poifs')
-rw-r--r-- | src/ooxml/testcases/org/apache/poi/poifs/crypt/TestSignatureInfo.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ooxml/testcases/org/apache/poi/poifs/crypt/TestSignatureInfo.java b/src/ooxml/testcases/org/apache/poi/poifs/crypt/TestSignatureInfo.java index dd2bc1705f..4b9cff9b3c 100644 --- a/src/ooxml/testcases/org/apache/poi/poifs/crypt/TestSignatureInfo.java +++ b/src/ooxml/testcases/org/apache/poi/poifs/crypt/TestSignatureInfo.java @@ -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(); |