This repository has been archived by the owner on Jun 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The error was that the XMLSignature.sign invocation was given the original document, and mutated the document that was signed. For the signing to work properly it is now given a _new_ empty Document. This is a much cleaner approach, as the original document instance (which is signed) is not mutated. The overly awkward use of misunderstood object-orient'ness in these APIs of the JDK are confusing to say the least. And don't get me started on the thread safety, or lack thereof, of all the factories and stuff. Co-authored-by: Øyvind Nerbråten <oyvind@nerbraten.no>
- Loading branch information
1 parent
6e0f857
commit 6012c72
Showing
3 changed files
with
34 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters