<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 9/8/19 3:54 AM, DD K wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAD3X5rYDU-bbk1DZMQi_7n+W+Jat_ojT1iLqybPnhA=bLDSFkw@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div>Hi Brent,</div>
        <div><br>
        </div>
        <div>I've tried to marshall the encrypted assertion but the same
          error persists.</div>
      </div>
    </blockquote>
    <p><br>
    </p>
    <p>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?</p>
    <p>If not: There are some helper methods in XMLObjectSupport which
      will allow doing this in just a few lines of code:</p>
    <p>    - marshallToOutputStream(final XMLObject xmlObject, final
      OutputStream outputStream)<br>
          - unmarshallFromInputStream(final ParserPool parserPool, final
      InputStream inputStream)</p>
    <p>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.<br>
    </p>
    <p>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.<br>
    </p>
    <br>
  </body>
</html>