rouxemmanuel / DigitalSigning

Digital Signing Alfresco plugin
45 stars 39 forks source link

Update Project to Alfresco SDK 3 and added Cades signature #62

Closed p4535992 closed 5 years ago

p4535992 commented 5 years ago

Hi in this merge made the following changes :
1) Update the project structure from SDK 2.2.0 to SDk 3.0.1 of Alfresco SDK Project Structure

2) This addon work just fine by himself, but if you try to use with other amps the version of bouncycastle 1.57 is to much different from the default bounycastle of Alfresco 5.2 and made some mix up with the libraries with many runtime exception on these other amps. After many try the only way i found to solve these problems it was to syncing the version of bouncycastle library and itext to the "standard" of Alfresco (with standard i mean the library do not override the standard library of Alfresco during the run of the apply_amp.sh script). So in the end i downgrade these library:

ITEXT 5.5.11 to 5.1.3 BOUNCYCASTLE 1.57 to 1.46/1.47

It' s work just fine the only thing i must do on developing is the new function for create a PDF/A file from a PDF during the signature of a PDF file using the standard library of Alfresco 5.2 PDFBOX 1.8.10 .

3) Added the CADES signature , if is not a PDF (PADES Signature) or is not a XML (XADES Signature) you sign the document and generate a p7m file if is enveloped or a p7s file if is detached like in the xml

4) TODO list for the form on Share

Greetings