santuario-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raul Benito <raul.benito.gar...@gmail.com>
Subject Re: Verify signature: bad for enveloped, ok for enveloping and detached.
Date Wed, 02 Feb 2005 10:10:59 GMT
Does you add enveloped-signature-transformation?
It is need to enveloped signatures. If not it will fail.

Regards,

Raul
http://r-bg.com


On Wed, 2 Feb 2005 10:29:57 +0100 (CET), def abc <anon742000@yahoo.fr> wrote:
> 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/
>

Mime
View raw message