[
https://issues.apache.org/jira/browse/PDFBOX-1720?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13769312#comment-13769312
]
Thomas Chojecki commented on PDFBOX-1720:
-----------------------------------------
This solution did not work with 1.48.
Cannot cast from DEROctetString to ASN1Set
Nevertheless, it is a good idea to support a wide range of BouncyCastle
versions. The refactoring of BC slowly becoming annoying.
> BouncyCastle 1.49: ambigous constructor usage
> ---------------------------------------------
>
> Key: PDFBOX-1720
> URL: https://issues.apache.org/jira/browse/PDFBOX-1720
> Project: PDFBox
> Issue Type: Improvement
> Components: PDModel
> Affects Versions: 2.0.0
> Reporter: Tilman Hausherr
> Priority: Minor
>
> pdfbox\pdmodel\encryption\PublicKeySecurityHandler.java:
> EnvelopedData env = new EnvelopedData(null, derset,
> encryptedcontentinfo, null);
> is ambigous *if* one would use the latest (1.49) version of bouncycastle and
> doesn't compile. One has to choose one of the two constructors by setting a
> type for the last "null". Looking at the constructor for 1.49, the solution
> would be:
> Solution:
> EnvelopedData env = new EnvelopedData(null, derset,
> encryptedcontentinfo, (ASN1Set) null);
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira