RE: Problems with creating a detached Signature with Java

2007-03-21 Thread Jochen Zink
Hi Yvan, yes this was helpfull. I wrote a RessourceResolver that handels a InputStream. Thanks a lot! Am Mi 21.03.2007 14:50 schrieb Hess Yvan <[EMAIL PROTECTED]>: > Hi Jochen, > > In my case, I sign XML documents having also external reference (non > XML document). > What you have to do is to

RE: Problems with creating a detached Signature with Java

2007-03-21 Thread Hess Yvan
Hi Jochen, In my case, I sign XML documents having also external reference (non XML document). What you have to do is to add an URI refererence to your external document to your XMLSignature element using something like that sig.addDocument(uri, null, Constants.ALGO_ID_DIGEST_SHA1); And then

Problems with creating a detached Signature with Java

2007-03-21 Thread Jochen Zink
Hello, I'm using the security Library for java and i'm not able to create a detached signature of an non-xml file. Has anyone a basic example? With study the examples, which shipped out with the distribution, I was able to sign enveloped and enveloping. But I can't find a way to sign a binary file