I'm not sure if it is a problem without more information and a test case.

I suggest you file a bug at https://issues.apache.org/bugzilla/enter_bug.cgi
and attach a test case.

Thanks,
Sean

Daniil Shved wrote:
I have generated a signature like this:
<ds:Signature Id="b1fe7c24-d257-4e27-8645-799d7bbff8ed"
xmlns:ds="http://www.w3.org/2000/09/xmldsig#";>
<ds:SignedInfo>...</ds:SignedInfo>
<ds:SignatureValue>...</ds:SignatureValue>
<ds:KeyInfo>...</ds:KeyInfo>
<ds:Object>
<ds:SignatureProperties
xmlns:sp="www.mysite.org/signature/special-properties">
<ds:SignatureProperty Id="1775706c-559f-490e-aa9d-a10a0e90af2a"
Target="#b1fe7c24-d257-4e27-8645-799d7bbff8ed"><sp:SignatureTime>2008-07-29T17:00:58.902+06:00</sp:SignatureTime></ds:SignatureProperty>
</ds:SignatureProperties></ds:Object>

As you see, I have an Object, inside of it a SignatureProperties, inside -
SignatureProperty, inside - my element. When I parse the existing signature,
I get the SignatureProperties element:
SignatureProperties properties = new
SignatureProperties(propertiesElement,"");

After this. properties.getLength() returns 0, although
properties.getElement() surely returns an element with one
ds:SignatureProperty child element. Why is this so?

Reply via email to