santuario-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Inoguchi, Kinichiro" <>
Subject RE: Why namespace in SignedContentItem is removed ?
Date Wed, 05 Jun 2013 00:52:37 GMT

I'm using xml-security-1.5.4, and JRE 1.6.0_41-b02.


From: Colm O hEigeartaigh [] 
Sent: Wednesday, June 05, 2013 12:01 AM
Subject: Re: Why namespace in SignedContentItem is removed ?

What version of the library are you using to generate the Signature?


On Tue, Jun 4, 2013 at 9:07 AM, Inoguchi, Kinichiro <> wrote:

Now I'm trying to work with detached and sibling XML signature.
I could sign to my XML, but I realized that SignedContentItem in
XMLSignature missed namespace I added.

Here is my XML document, and I signed to <myXml>.
<myXml> contains <myData>, and <myData> contains <myItem>.
<myItem> belongs to namespace "http://xxx.yyy.zzz/".
<myPayload xmlns="http://aaa.bbb.ccc/">
    <myXml xmlns:ns0="http://aaa.bbb.ccc/" ns0:Id="signed">
            <myItem xmlns="http://xxx.yyy.zzz/">Item1</myItem>

And SignedContentItem in XMLSignature was like below.
<myXml xmlns="http://aaa.bbb.ccc/" Id="signed"><myData><myItem>Item1</myItem></myData></myXml>

I wonder why namespace is removed from <myItem>.
I'm afraid that this will causes wrong digest value calculation.

I've read the thread "vanishing attribute namespace prefixes",
but I couldn't get the conclusion by myself.

Does anyone tell me how to resolve this issue ?

I attached source code (
and result (TestMySignature.txt).


Colm O hEigeartaigh

Talend Community Coder

View raw message