Hi,
I'm a newbie on XML signatures. I've been reading up on it lately, and I have some questions below that I hope you can help me with:
(1) I looked at the simpleHMAC.cpp example, which uses enveloped signature. This requires Xalan. If I use a detached signature instead, with the following algorithms, would I still need to install Xalan?
Algorithms:
CanonicalizationMethod: C14n without comments
Transform: TRANSFORM_C14N, just canonicalization
DigestMethod: HASH_SHA1
SignatureMethod: SIGNATURE_DSA
Example of detached signature:
<UserDocument>
<User id="userid">
<Name>Tom Jones</Name>
</User>
<Signature>
<SignedInfo>
...
<Reference URI="userid">
...
</Reference>
...
</SignedInfo>
</Signature>
</UserDocument>
(2) The XSec API to generate the above detached signature is almost the same as for the enveloped signature, right? Does anyone have a sample detached signature code that I can look at?
Thanks for your help in advance! Much appreciated.
Regards,
Monica
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.