Re: Enveloping signature: wrong document err.

2005-02-02 Thread def abc
Raul, Heiner, Bonjour :-) Thanks very much for your help: I now have a beautiful enveloping signature :-) Thanks too for the link to the CreateEnveloping sample. I was using the AxisSigner but hadn't seen that other example ! BTW, as for the intent, it's just to try out this API. I'm (quite) famil

Re: enveloping signature

2005-02-01 Thread Heiner Westphal
Axelle, see my comments below. Axelle wrote: Thanks very much for your reply. It actually answers my next post too :-) So, the way to do it is to use importNode() ? However, I'm not really sure to understand the way it works: Document signedDoc = documentBuilder.newDocument(); Okay, we cre

Re: enveloping signature

2005-02-01 Thread def abc
Thanks very much for your reply. It actually answers my next post too :-) So, the way to do it is to use importNode() ? However, I'm not really sure to understand the way it works: > Document signedDoc = > documentBuilder.newDocument(); Okay, we create the Document object for the signed

Re: Enveloping signature: wrong document err.

2005-02-01 Thread Raul Benito
Bon Soir, Axelle, First of all don“t use crimson as XML parser it can you give some head aches. Anyway, your problem can be fix by using doc.importNode function. But I don't understand your intends. Regards, Raul http://r-bg.com On Tue, 1 Feb 2005 17:33:53 +0100 (CET), def abc <[EMAIL PROTECTED

Re: Enveloping signature: wrong document err.

2005-02-01 Thread Heiner Westphal
Axelle wrote: [ snip ] Wow, you are fast. Sounds familiar. Took me some time to sort it out once upon a time... // create the ds:Object Document doc = db.newDocument(); ObjectContainer obj = new ObjectContainer(input); Instead of: doc.appendChild(obj.getElement()); use: boolean deepCopy = true; Nod

Re: enveloping signature

2005-02-01 Thread Heiner Westphal
Axelle wrote: [ snip ] - how can I build an enveloping signature ? (not an enveloped one). I once used enveloping sigs in a project. I pulled the essential code into a testcase and attached it. The exception handling is left to junit in this case. The build.xml simply creates a keystore with priva