Tilman Hausherr created PDFBOX-1720:
---------------------------------------

             Summary: 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

Reply via email to