[
https://issues.apache.org/jira/browse/PDFBOX-1720?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tilman Hausherr updated PDFBOX-1720:
------------------------------------
Description:
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.48, the solution
would be:
Solution:
EnvelopedData env = new EnvelopedData(null, derset,
encryptedcontentinfo, (ASN1Set) null);
was:
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);
> 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
> Assignee: Thomas Chojecki
> Priority: Minor
> Fix For: 2.0.0
>
>
> 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.48, 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