santuario-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Raul Benito" <>
Subject Re: Cannot sign-verify twice in the same thread with different XMLSignature instances
Date Fri, 03 Nov 2006 09:33:52 GMT
Hi Ruchith,

It looks strange to me, because all the junits that we pass do in
essence what are you describing(several verifying in one thread). But
on the other hand your explanation looks sound.
What version of xmlsec are you using?
Can you post a simple test case that triggers this error?



On 11/3/06, Ruchith Fernando <> wrote:
> Hi Devs,
> I ran into an " object not
> initialized for verification" exception when trying to do sign and
> verify *twice* in the same thread, using different XMLSignature
> instances.
> I tracked this down to the use of "keysVerify" thread local tracker in
> to tack the
> initialization of the instance with
> private/public keys.
> When the first signature verification occurs the public key is set in
> "keysVerify" in SignatureAlgorithm#initVerify(). And it verifies
> successfully. But when we try to carryout the second verification the
> "keysVerify" returns the same key for the thread and the
> instance is not initialized with the public
> key. Therefore we run into the above exception.
> What do you folks think? Have I overlooked something in my scenario?
> Thanks,
> Ruchith
> --


View raw message