https://bz.apache.org/bugzilla/show_bug.cgi?id=59841

--- Comment #13 from Andreas Beeker <[email protected]> ---
Created attachment 34046
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=34046&action=edit
new OPCPackage.open(ZipEntrySource) method / custom encrypted temp zip

As described above, the OPCPackage needed to be extended to provide the
functionality of providing a custom encrypted temp file, which can be streamed
to POI

At first I've started to use packages like zip4j, winzipaes or commons-compress
(which doesn't provide encryption support), but as the resulting temp doesn't
need to be outside of the user process, I've downgraded it to a simple custom
enc-/decryption routine.

Also as noted above, I haven't put any effort into the the temp file
generation, as this is simply a user code issue - so given your described use
case, I don't see a need to push the logic into ZipInputStreamZipEntrySource &
Co. and rather supply an example in the unit tests for further reference, i.e.
I'm reluctant to make things more complicated ...

Please validate that approach and if it's ok I'll commit it.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to