I am trying to add a digital signature to an xlsx file... Can't seem to find any resources for this (other than adding signatures to literal/regular xml files). Is this possible with docx4j? I see it includes jaxb-xmldsig but there are no samples that I could find. Perhaps someone could point me in the right direction?
EDIT: Per Jason, I looked at the differences via the demo webapp....
There are two new entries in [Content_Types].xml:
- <Default Extension="sigs" ContentType="application/vnd.openxmlformats-package.digital-signature-origin"/>
- <Override ContentType="application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml" PartName="/_xmlsignatures/sig1.xml"/>
Two new parts within a new top level directory (_xmlsignatures):
- /_xmlsignatures/origin.sigs
- /_xmlsignatures/sig1.xml
There is also a _rels directory within _xmlsignatures which contains a single file origin.sigs.rels. I can post more info if that will be helpful.