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.
posted 7 years ago
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_.