Dominik Schadow wrote:
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)?

Just pass null as the transform argument, i.e.:

sig.addDocument(detachedFileURL, null, md);

--Sean

Reply via email to