Hi again...
And now I'm trying to validate my signatures. I've
built three signatures: a enveloped one, a detached
one and an enveloping one. All on the same document. 
They all have the same SignatureValue, that's a good
starting point :-)
The detached and the enveloping signature verify okay,
but the enveloped one fails !
I found a few threads on this topic in the
mailing-list but couldn't find my case. 

Any idea ?
Regards,
Axelle.


FileInputStream fis = new
FileInputStream(outputURI.getPath());
Document doc = db.parse(fis);
fis.close();
                
NodeList dsNodeList =
doc.getElementsByTagName("ds:Signature");
if (dsNodeList.getLength() == 0)
 throw new IOException("No signature in file");
                
Element dsElement = (Element) dsNodeList.item(0);
                                
XMLSignature signature = new XMLSignature(dsElement,
outputURI.toString());
return signature.checkSignatureValue(pubkey);



        

        
                
Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos mails ! 
Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com/

Reply via email to