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? 
-- 
View this message in context: 
http://www.nabble.com/Finding-SignatureProperty-in-SignatureProperties-tp18710028p18710028.html
Sent from the Apache XML - Security - Dev mailing list archive at Nabble.com.

Reply via email to