diff options
author | Luis Bernardo <lbernardo@apache.org> | 2013-05-18 22:25:52 +0000 |
---|---|---|
committer | Luis Bernardo <lbernardo@apache.org> | 2013-05-18 22:25:52 +0000 |
commit | 016cb3199865f798f401c452554eea6e74055950 (patch) | |
tree | 10635c8e78ce1124251a9e735088f20cc81619c7 /test/java/org/apache/fop/render | |
parent | af665b918b7a15470f9006c7d217a9fc8ea7fcbd (diff) | |
download | xmlgraphics-fop-016cb3199865f798f401c452554eea6e74055950.tar.gz xmlgraphics-fop-016cb3199865f798f401c452554eea6e74055950.zip |
FOP-2248: add support for AES 256 PDF encryption
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1484190 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/java/org/apache/fop/render')
-rw-r--r-- | test/java/org/apache/fop/render/pdf/PDFRendererConfigParserTestCase.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/test/java/org/apache/fop/render/pdf/PDFRendererConfigParserTestCase.java b/test/java/org/apache/fop/render/pdf/PDFRendererConfigParserTestCase.java index 2d21b399c..2d3dfb760 100644 --- a/test/java/org/apache/fop/render/pdf/PDFRendererConfigParserTestCase.java +++ b/test/java/org/apache/fop/render/pdf/PDFRendererConfigParserTestCase.java @@ -165,13 +165,21 @@ public class PDFRendererConfigParserTestCase .getEncryptionLengthInBits()); } - for (int i = 128; i < 1000; i += 50) { + for (int i = 128; i < 256; i += 10) { parseConfig(createRenderer() .startEncryptionParams() .setEncryptionLength(i) .endEncryptionParams()); assertEquals(128, conf.getConfigOptions().getEncryptionParameters().getEncryptionLengthInBits()); } + + for (int i = 256; i < 1000; i += 50) { + parseConfig(createRenderer() + .startEncryptionParams() + .setEncryptionLength(i) + .endEncryptionParams()); + assertEquals(256, conf.getConfigOptions().getEncryptionParameters().getEncryptionLengthInBits()); + } } @Test |