Detached with peculiar URIs

2007-08-06 Thread André Luiz Cardoso
Hi, I'm having trouble on creating a Detached signature of resources referenced by files URI's and FTP URI's. After looking the sources files I decided to create tests for these situations. I had modified the tests on the following tests: org.apache.xml.security.test.signature.CreateSignatureTest

RE: How to sign a sub-tree

2007-08-06 Thread Scott Cantor
> Following up on kb's thread on signing less than the whole document, I > would like to ask how to use the API to sign a sub-tree of my document. It is > easy for me to retrieve the sub-tree (i.e. the parent element) because it's > unique. Retrieving it via some kind of DOM call is not relevant,

RE: Signing just one of the elements in a DOMDocument

2007-08-06 Thread Scott Cantor
> > Yes, but it's somewhat difficult. You can either use an XPath filter > > transform to select the node, or refer to the node by an ID attribute. > > It's not 100% clear to me how you mean that, but I am new to XML Security > (though not to XML). Do you see the problem in retrieving the correct

How to sign a sub-tree

2007-08-06 Thread ralph-xmlsecurity
Hi, Following up on kb's thread on signing less than the whole document, I would like to ask how to use the API to sign a sub-tree of my document. It is easy for me to retrieve the sub-tree (i.e. the parent element) because it's unique. But I don't quite get how I can apply the API to it: the

Re: Signing just one of the elements in a DOMDocument

2007-08-06 Thread ralph-xmlsecurity
Scott, On Wednesday 01 August 2007 21:20:52 Scott Cantor wrote: > > is there a way that i could just sign just one element from the whole > > xml. > > Yes, but it's somewhat difficult. You can either use an XPath filter > transform to select the node, or refer to the node by an ID attribute. It's