Unable to decrypt assertion in OpenSAML3
Brent Putman
putmanb at georgetown.edu
Mon Sep 9 19:15:26 EDT 2019
On 9/8/19 3:54 AM, DD K wrote:
> Hi Brent,
>
> I've tried to marshall the encrypted assertion but the same error
> persists.
As I suggested, are you completely marshalling and serializing it all
the way to say a byte[] or File, then then parsing and unmarshalling it
to a completely fresh EncryptedAssertion?
If not: There are some helper methods in XMLObjectSupport which will
allow doing this in just a few lines of code:
- marshallToOutputStream(final XMLObject xmlObject, final
OutputStream outputStream)
- unmarshallFromInputStream(final ParserPool parserPool, final
InputStream inputStream)
Just use say a ByteArrayOutputStream and then the byte[] from that into
a ByteArrayInputStream. Or the equivalent File- ones for a temp file
path, etc.
If you do that, and you still get the same namespace error, then I have
no idea what's going on. I would suspect the issue is in something
environmental, local to you, and lies in something that you're not
mentioning. The encryption and decryption code snippets themselves you
posted are correct and won't in general result in that error. It's
something else.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/dev/attachments/20190909/5f7072e3/attachment.html>
More information about the dev
mailing list