You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@santuario.apache.org by Daniil Shved <da...@gmail.com> on 2008/07/29 13:18:33 UTC

Finding SignatureProperty in SignatureProperties

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.


Re: Finding SignatureProperty in SignatureProperties

Posted by Sean Mullan <Se...@Sun.COM>.
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?