apache xml signature - load and sign pre calculate SignedInfo

Hallo to all.

I'm trying to sig an xml file (DOM using java apache xml security api. I'd like to perfom sign operation starting not from all document but just from loading SignedInfo with the digest value and sign it.

Does anybody know if it's possible and how?

I took a look at apache xml security without founding anything. There is only the way to build a brand new SignedInfo object.

Thanks to all

Matteo

[448 byte] By [2407500518951768323a] at [2007-11-27 8:06:50]
# 1

Try using JSR 105 (Java XML Signature API), included in JDK 6. There is a method

in the XMLSignatureFactory class for creating Reference objects with pre-calculated

digest values:

http://java.sun.com/javase/6/docs/api/javax/xml/crypto/dsig/XMLSignatureFactory.html#newReference(java.lang.String,%20javax.xml.crypto.dsig.DigestMethod,%20java.util.List,%20java.lang.String,%20java.lang.String,%20byte[])

smullana at 2007-7-12 19:49:29 > top of Java-index,Security,Other Security APIs, Tools, and Issues...
# 2
Hi, thanks for the repaly.I found it very good. Afther several trubles I found the right way to create a new reference. Now my problem is to add this new reference in the document using apache xml secrity Java Api.Any suggestion?ThanksMatteo
2407500518951768323a at 2007-7-12 19:49:29 > top of Java-index,Security,Other Security APIs, Tools, and Issues...