https://issues.apache.org/bugzilla/show_bug.cgi?id=45586
--- Comment #13 from [EMAIL PROTECTED] 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 SignatureMethodURI, String CanonicalizationMethodURI) Try that, and specify Canonicalizer.ALGO_ID_C14N_EXCL_OMIT_COMMENTS as the URI. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.