Normalization of DOM

2006-04-12 Thread chirsmail sapl
Hi All,   I did quite a lot of R&D and found that normalizing the DOM converted from JDOM stabilize and gets the exact DOM out of JDOM and validate the signature only for an URI signature.   The validation of signature of an URI of XML works successfully when we normalize the DOM out of JDOM. B

RE: JDOM - Sign validation

2006-04-07 Thread chirsmail sapl
(   new FileWriter("output_DOM.xml"), format);   //serializer.asDOMSerializer();   serializer.serialize(signDocument); chirsmail sapl <[EMAIL PROTECTED]> wrote:Yes, you are correct.Here is what i did 1)Converted JDOM to DOM and then signed. 2)Serialized the signed DOM an

RE: JDOM - Sign validation

2006-04-07 Thread chirsmail sapl
ABds:Exponent>   ds:RSAKeyValue>   ds:KeyValue>   ds:KeyInfo>   ds:Signature>   can you help me get original DOM out of JDOM Thanks Chris,Jesse Pelton <[EMAIL PROTECTED]> wrote: So, if you serialize the original DOM (canonicalized), convert to JDOM, convert back to

Re: JDOM - Sign validation

2006-04-07 Thread chirsmail sapl
er and viceversa. JDOM <-> DOM   moreover, i usually use IBMXMLSecurity suite to test the file just typing java dsig.VerifyGUI "filename.xml"    - Original Message ----- From: chirsmail sapl To: security-dev@xml.apache.org Sent: Friday, April 07, 2006 2:31 PM Su

Re: JDOM - Sign validation

2006-04-07 Thread chirsmail sapl
UI "filename.xml"    - Original Message ----- From: chirsmail sapl To: security-dev@xml.apache.org Sent: Friday, April 07, 2006 2:31 PM Subject: Re: JDOM - Sign validationthanks for the reply.When i print DOM and DOM converted from JDOM seems to be same.I see lot of difference on the

Re: JDOM - Sign validation

2006-04-07 Thread chirsmail sapl
thanks for the reply.When i print DOM and DOM converted from JDOM seems to be same.I see lot of difference on the object level of signed DOM and DOM converted from JDOM.Because the signing of DOM converted from JDOM work well.After updating the DOM into JDOM and then convert the JDOM back to DOM ,t

Re: JDOM - Sign validation

2006-04-07 Thread chirsmail sapl
Thanks for the reply. 1)The different is on the byte level.When we print the byte of the orignal DOM and DOM converted from JDOM , the size is different. 2)The DOM converted from JDOM has the white space if the element doesn't have the values. For example : Orignal XML content:  DOM o/p us

JDOM - Sign validation

2006-04-06 Thread chirsmail sapl
I am running into an issue with the XML signature validation of JDOM.The issue is that the XML signature validation of DOM converted from JDOM fails.Here are the steps for signing:1)Converted JDOM to DOM using SAXBuilder2)Signed an URI of converted DOM3)Converted the DOM into JDOM againIt works fin