[
https://issues.apache.org/jira/browse/PDFBOX-2460?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14189071#comment-14189071
]
John Hewson commented on PDFBOX-2460:
-------------------------------------
Trying to build on my Mac gives the error:
{code}
Failed tests:
TestPublicKeyEncryption.setUp:70 JCE unlimited strength jurisdiction policy
files are not installed
TestPublicKeyEncryption.setUp:70 JCE unlimited strength jurisdiction policy
files are not installed
TestPublicKeyEncryption.setUp:70 JCE unlimited strength jurisdiction policy
files are not installed
TestSymmetricKeyEncryption.setUp:80 JCE unlimited strength jurisdiction
policy files are not installed
{code}
Which isn't going to work out - we need PDFBox to be able to build on standard
Java installs, such as my own. A [post on stack
overflow|http://stackoverflow.com/questions/1179672/how-to-avoid-installing-unlimited-strength-jce-policy-files-when-deploying-an]
suggest that using the Java crypto APIs is probably a bad idea in terms of
redistribution and suggests using Bouncy Castle instead. As we already use
Bouncy Castle, shouldn't we be using the APIs it offers instead of relying on
Java?
> fix TestPublicKeyEncryption.java
> --------------------------------
>
> Key: PDFBOX-2460
> URL: https://issues.apache.org/jira/browse/PDFBOX-2460
> Project: PDFBox
> Issue Type: Bug
> Components: Utilities
> Affects Versions: 2.0.0
> Environment: java7 , deb7
> Reporter: Ralf Hauser
> Assignee: Tilman Hausherr
> Fix For: 2.0.0
>
> Attachments: patch2460Decryption.txt, patch2460DecryptionVerbose.txt,
> patch2460PublicKeyTestCaseOnError.txt
>
>
> as reported by Tilman in PDFBOX-2456
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)