[ 
https://issues.apache.org/jira/browse/PDFBOX-1986?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

John Hewson resolved PDFBOX-1986.
---------------------------------

    Resolution: Fixed

> Move SecurityHandler to PDEncryptionDictionary
> ----------------------------------------------
>
>                 Key: PDFBOX-1986
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1986
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: PDModel
>    Affects Versions: 2.0.0
>            Reporter: John Hewson
>              Labels: Encryption
>             Fix For: 2.0.0
>
>
> In the PDF specification a "security handler" is defined in the "encryption 
> dictionary", but in PDFBox the security handler belongs to the document 
> itself.
> It is not difficult to move the SecurityHandler field of PDDocument to the 
> PDEncryptionDictionary class, and we can do so without introducing any 
> breaking changes.
> We can deprecate methods at this point rather than removing them, until we're 
> happy with feedback.
> Also, we generally don't use the postfix "Dictionary" because most classes in 
> the PD model represent dictionaries anyway, so we should rename 
> PDEncryptionDictionary to PDEncryption. Luckily we can just deprecate the old 
> class and add a new subclass with the desired name. This avoids breaking 
> changes until we're happy with the new state of things.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to