Hi there,

when creating a detached signature I use 

sig.addDocument(detachedFileURL);

to add the binary file to sign to my signature object. With a detached XML 
document I can determine a transform and a message digest algorithm using 

sig.addDocument(detachedFileURL, transform, md);

How can I sign a detached non XML document and pass a message digest algorithm 
(a transform doesn’t make much sense)? When using the first method from above 
always SHA1 is used. So what I’m missing is a method like 

sig.addDocument(detachedFileURL, md);

to sign arbitrary content as a detached signature with a defined message digest.

Is there any chance to do that?

Regards, Dominik
_____________________________________________________________________
Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
http://smartsurfer.web.de/?mc=100071&distributionid=000000000071

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to