Re: Is XML signature valid?

2004-06-30 Thread Matej Kafadar
String toSign is a absolute path to XML file to sign. File is attached. regards Matej > > Part of code: > > > > Document doc = db.parse(toSign); > > Element root = doc.getDocumentElement(); > > XMLSignature sig = new XMLSignature(doc, > > null,XMLSignature.ALGO_ID_SIGNATUR

Re: Is XML signature valid?

2004-06-30 Thread raul-info
> Part of code: > > Document doc = db.parse(toSign); > Element root = doc.getDocumentElement(); > XMLSignature sig = new XMLSignature(doc, > null,XMLSignature.ALGO_ID_SIGNATURE_RSA); > root.appendChild(sig.getElement()); > Transforms transforms = new Transforms(doc); >

Re: Is XML signature valid?

2004-06-30 Thread Matej Kafadar
Part of code: Document doc = db.parse(toSign); Element root = doc.getDocumentElement(); XMLSignature sig = new XMLSignature(doc, null,XMLSignature.ALGO_ID_SIGNATURE_RSA); root.appendChild(sig.getElement()); Transforms transforms = new Transforms(doc); transforms

Re: Is XML signature valid?

2004-06-30 Thread raul-info
> Hi, > > Milan posted two signed (enveloped) XML files signed in java (see > attachment). One is with stylesheet and other without it. Both signatures > are valid verified by java libraries. File "test_with_stylesheet_java.xml" > is not valid verified by C++ libraries. > > Is XML signature "test_

Is XML signature valid?

2004-06-30 Thread Matej Kafadar
Hi, Milan posted two signed (enveloped) XML files signed in java (see attachment). One is with stylesheet and other without it. Both signatures are valid verified by java libraries. File "test_with_stylesheet_java.xml" is not valid verified by C++ libraries. Is XML signature "test_with_styleshee