You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Andreas Lehmkühler (JIRA)" <ji...@apache.org> on 2011/06/25 19:02:47 UTC

[jira] [Resolved] (PDFBOX-1032) Signing improvement (settable signature size)

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

Andreas Lehmkühler resolved PDFBOX-1032.
----------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.6.0
         Assignee: Andreas Lehmkühler

I applied the patch in revision 1139570 as proposed, but I didn't included the additional implementation of the closeable interface. I still didn't understand why we should need that, but probably I'm the only one who didn't get the point. ;-)
Please create a new issue and try to find an example.

I also added some more COSName-constants and the translations of Thomas comment from PDFBOX-1041

Thanks for the contribution.

> Signing improvement (settable signature size)
> ---------------------------------------------
>
>                 Key: PDFBOX-1032
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1032
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: Writing
>    Affects Versions: 1.6.0
>            Reporter: Thomas Chojecki
>            Assignee: Andreas Lehmkühler
>             Fix For: 1.6.0
>
>         Attachments: signing_improvement.patch
>
>
> Here is a small patch that add a new setter and getter "preferedSignatureSize" to the SignatureOptions. So the user can set the approximate signature size on one's own.
> We use a small amount of bytes for the signature itself like 0x500 and additional calculate the size of the whole certificate chain that should be wrote inside the signature. This is much better than setting a fix signature size.
> If the user don't set any size, 0x2500 will be reserved.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira