• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Signing & Verify XML Document

 
Jigar Naik
Ranch Hand
Posts: 761
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

what are the ways to sign an xml document.

I want to look my xml simple after signing.

there should be only one signature and public key node. to the xml document after signing.

i tried the example given in jwsdp-2.0 - xmldsig

but it generate Signature node with nesting method and algo which is being used. and i have got to know that all the information is required for verification.



bellow is the code though which i have signed the xml.

Is there anyway we can remove other nodes then signature and key.



Thanks !!
 
Salman Ahmed
Greenhorn
Posts: 27
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You always have the choice and freedom to implement the signature generation yourself: you decide what part (or parts) of the XML document you want to sign, how and where you want to embed the signature (for subsequent verification) in the same XML document, etc.

The only downside of this approach is that you have to implement both the signing and verification pieces _yourself_.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic