santuario-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 45586] Signature verification fails, C14N transform returns null
Date Tue, 23 Sep 2008 13:52:59 GMT

--- Comment #13 from  2008-09-23 06:52:58 PST ---
(In reply to comment #12)
> Brent,
> You may be right in your assessment but I do not see any way to set the value
> for Signature/SignedInfo/CanonicalizationMethod. Looking at the documentation
> for the constructor XMLSignature(Document doc, String BaseURI, String
> SignatureMethodURI), I see that Canonicalizer.ALGO_ID_C14N_OMIT_COMMENTS algo
> should be used which is required by the spec and that is what I am also
> following (xmlsec examples also use that). I do not see any method either in
> XMLSignature or in SignedInfo class to set the c14n algo. Do you know any way
> to do that? Can I set the excl c14n algo using the other constructors of
> XMLSignature ?

There's another constructor that takes the C14N algorithm as a uri:

    public XMLSignature(Document doc, String BaseURI, String
        String CanonicalizationMethodURI)

Try that, and specify Canonicalizer.ALGO_ID_C14N_EXCL_OMIT_COMMENTS as the URI.

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

View raw message