atom feed17 messages in net.java.dev.jwsdp.usersRe: XPath Transform filter
FromSent OnAttachments
Kesav Kumar KollaJul 15, 2004 2:36 pm 
Kesav Kumar KollaJul 15, 2004 2:41 pm 
Kesav Kumar KollaJul 15, 2004 2:42 pm 
Sean MullanJul 15, 2004 2:52 pm 
Kesav Kumar KollaJul 15, 2004 3:55 pm 
Kesav Kumar KollaJul 15, 2004 8:15 pm 
Kesav Kumar KollaJul 15, 2004 8:36 pm 
Sean MullanJul 16, 2004 6:55 am 
Kesav Kumar KollaJul 16, 2004 8:01 am 
Kesav Kumar KollaJul 16, 2004 8:50 am 
Mario Jukic (ZG/ETK)Jul 19, 2004 12:42 am 
Sean MullanJul 19, 2004 6:08 am 
Sean MullanJul 19, 2004 11:10 am 
Kesav Kumar KollaJul 19, 2004 6:17 pm.java
Sean MullanJul 20, 2004 7:36 am 
Kesav Kumar KollaJul 21, 2004 9:10 am 
Sean MullanJul 21, 2004 3:03 pm 
Subject:Re: XPath Transform filter
From:Kesav Kumar Kolla (kesa@hotmail.com)
Date:Jul 21, 2004 9:10:52 am
List:net.java.dev.jwsdp.users

Sean

Thanks for catching the bug. Is this xmldsig also part of the jwsdp community project @ java.net? Hope next version will have a fix for it. If you do find an alternate way of doing this please let me know. Could you suggest me any thing for the following scenario

I have a XML document which I need to able to sign at some levels of the tree. I need to support multiple signatures and validate the signatures.

I was thinking the enveloped solution because I need to support signatures at multiple levels of the tree. I ran into another problem by enveloped signature by signing twice the same level. Does Transform.ENVELOPED ignores any previous signatures attached to the node? Also is there any way that I can ignore the formatting (white spaces, tabs etc..) while calculating digest value?

Thanks a million for all your responses.

Blog: http://kesav.blogspot.com ph: 510-461-1492

----- Original Message ----- From: "Sean Mullan" <Sean@Sun.COM> To: <use@jwsdp.dev.java.net> Sent: Tuesday, July 20, 2004 7:36 AM Subject: Re: XPath Transform filter

Kesav,

I'm able to reproduce the problem. It is a bug. Let me get back to you to see if I can find a workaround.

Kesav Kumar Kolla wrote:

I first thought XPath Filter2 transform is the right choice, when I tried I got the following error. I am attaching my whole source code for your reference. Could you please tell me whether I am doing wrong or is there any bug.

Exception in thread "main" javax.xml.crypto.dsig.XMLSignatureException: com.sun.org.apache.xml.security.transforms.TransformationException: Cannot fin d http://www.w3.org/2002/06/xmldsig-filter2 in XPath Original Exception was com.sun.org.apache.xml.security.transforms.TransformationException: Cannot find http://www.w3.org/2002/06/xmldsig-filter2 in XP ath at

org.jcp.xml.dsig.internal.dom.ApacheTransform.transform(ApacheTransform.java :94)

at

org.jcp.xml.dsig.internal.dom.DOMReference.transform(DOMReference.java:335)

at org.jcp.xml.dsig.internal.dom.DOMReference.digest(DOMReference.java:232) at

org.jcp.xml.dsig.internal.dom.DOMXMLSignature.sign(DOMXMLSignature.java:298)

at Test.main(Test.java:106) Caused by: com.sun.org.apache.xml.security.transforms.TransformationException: Cannot find http://www.w3.org/2002/06/xmldsig-filter2 in XPath Original Exception was com.sun.org.apache.xml.security.transforms.TransformationException: Cannot find http://www.w3.org/2002/06/xmldsig-filter2 in XP ath at

com.sun.org.apache.xml.security.transforms.implementations.TransformXPath2Fi lter.enginePerformTransform(Unknown

Source) at

com.sun.org.apache.xml.security.transforms.Transform.performTransform(Unknow n

Source) at

org.jcp.xml.dsig.internal.dom.ApacheTransform.transform(ApacheTransform.java :92)

.. 4 more com.sun.org.apache.xml.security.transforms.TransformationException: Cannot find http://www.w3.org/2002/06/xmldsig-filter2 in XPath Original Exception was com.sun.org.apache.xml.security.transforms.TransformationException: Cannot find http://www.w3.org/2002/06/xmldsig-filter2 in XP ath at

com.sun.org.apache.xml.security.transforms.implementations.TransformXPath2Fi lter.enginePerformTransform(Unknown

Source) at

com.sun.org.apache.xml.security.transforms.Transform.performTransform(Unknow n

Source) at

org.jcp.xml.dsig.internal.dom.ApacheTransform.transform(ApacheTransform.java :92)

at

org.jcp.xml.dsig.internal.dom.DOMReference.transform(DOMReference.java:335)

at org.jcp.xml.dsig.internal.dom.DOMReference.digest(DOMReference.java:232) at

org.jcp.xml.dsig.internal.dom.DOMXMLSignature.sign(DOMXMLSignature.java:298)

at Test.main(Test.java:106) com.sun.org.apache.xml.security.transforms.TransformationException: Cannot find http://www.w3.org/2002/06/xmldsig-filter2 in XPath at

com.sun.org.apache.xml.security.transforms.implementations.TransformXPath2Fi lter.enginePerformTransform(Unknown

Source) at

com.sun.org.apache.xml.security.transforms.Transform.performTransform(Unknow n

Source) at

org.jcp.xml.dsig.internal.dom.ApacheTransform.transform(ApacheTransform.java :92)

at

org.jcp.xml.dsig.internal.dom.DOMReference.transform(DOMReference.java:335)

at org.jcp.xml.dsig.internal.dom.DOMReference.digest(DOMReference.java:232) at

org.jcp.xml.dsig.internal.dom.DOMXMLSignature.sign(DOMXMLSignature.java:298)

at Test.main(Test.java:106) com.sun.org.apache.xml.security.transforms.TransformationException: Cannot find http://www.w3.org/2002/06/xmldsig-filter2 in XPath Original Exception was com.sun.org.apache.xml.security.transforms.TransformationException: Cannot find http://www.w3.org/2002/06/xmldsig-filter2 in XP ath at

com.sun.org.apache.xml.security.transforms.implementations.TransformXPath2Fi lter.enginePerformTransform(Unknown

Source) at

com.sun.org.apache.xml.security.transforms.Transform.performTransform(Unknow n

Source) at

org.jcp.xml.dsig.internal.dom.ApacheTransform.transform(ApacheTransform.java :92)

at

org.jcp.xml.dsig.internal.dom.DOMReference.transform(DOMReference.java:335)

at org.jcp.xml.dsig.internal.dom.DOMReference.digest(DOMReference.java:232) at

org.jcp.xml.dsig.internal.dom.DOMXMLSignature.sign(DOMXMLSignature.java:298)

at Test.main(Test.java:106) com.sun.org.apache.xml.security.transforms.TransformationException: Cannot find http://www.w3.org/2002/06/xmldsig-filter2 in XPath at

com.sun.org.apache.xml.security.transforms.implementations.TransformXPath2Fi lter.enginePerformTransform(Unknown

Source) at

com.sun.org.apache.xml.security.transforms.Transform.performTransform(Unknow n

Source) at

org.jcp.xml.dsig.internal.dom.ApacheTransform.transform(ApacheTransform.java :92)

at

org.jcp.xml.dsig.internal.dom.DOMReference.transform(DOMReference.java:335)

at org.jcp.xml.dsig.internal.dom.DOMReference.digest(DOMReference.java:232) at

org.jcp.xml.dsig.internal.dom.DOMXMLSignature.sign(DOMXMLSignature.java:298)

at Test.main(Test.java:106)

Thanks for all your assistance.

-kesav