https://issues.apache.org/bugzilla/show_bug.cgi?id=44335





--- Comment #5 from coheigea <cohei...@apache.org>  2009-06-09 04:57:56 PST ---
Created an attachment (id=23779)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=23779)
A patch for this issue


See attached for a patch for this issue.

I added in two new methods to SignatureAction, one to clear the signature
caches, and one to clear the verification caches.

The initializing code in XMLSignature for signing and verification is now
wrapped in a try/catch that calls the corresponding cache clearing method in
SignatureAction on an error, before throwing the exception. So if there's an
error here, the Signature "state" is reset before the next attempt and there
won't be a problem with a subsequent verification as per the bug.

I've tested it with the submitted test-case and it works fine.

Colm.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to