Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add callback method to retrieve the generated raw SBD #34

Closed
RovoMe opened this issue Mar 11, 2020 · 1 comment
Closed

Add callback method to retrieve the generated raw SBD #34

RovoMe opened this issue Mar 11, 2020 · 1 comment
Assignees

Comments

@RovoMe
Copy link

RovoMe commented Mar 11, 2020

On using the Phase4PeppolSender.Builder and passing the bytes of the UBL via the builder's setPayload(byte[]) method, there is currently no way to obtain the generated SBD. While technically the SBD could be obtained via the output stream that is fed into our customized IAS4OutgoingDumper implementation, further filtering and decryption are necessary. Especially the decryption part is probably the blocking part though as we do not have access to the targets private key unfortunately.

A callback method that is invoked right after the SBD was generated would therefore be highly appreciated. The callback should probably support deep copying of the SBD in order to prevent posterior changes done to the original SBD while handling the callback.

@phax
Copy link
Owner

phax commented Mar 12, 2020

Part of 0.9.13 release

@phax phax closed this as completed Mar 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants