Return-Path: X-Original-To: apmail-santuario-dev-archive@www.apache.org Delivered-To: apmail-santuario-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9C1F39ED5 for ; Thu, 31 May 2012 08:48:24 +0000 (UTC) Received: (qmail 8500 invoked by uid 500); 31 May 2012 08:48:24 -0000 Delivered-To: apmail-santuario-dev-archive@santuario.apache.org Received: (qmail 8411 invoked by uid 500); 31 May 2012 08:48:23 -0000 Mailing-List: contact dev-help@santuario.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@santuario.apache.org Delivered-To: mailing list dev@santuario.apache.org Received: (qmail 8361 invoked by uid 99); 31 May 2012 08:48:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 May 2012 08:48:22 +0000 X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=HK_LOTTO_NAME,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of pushpalankajaya@gmail.com designates 209.85.213.182 as permitted sender) Received: from [209.85.213.182] (HELO mail-yx0-f182.google.com) (209.85.213.182) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 May 2012 08:48:16 +0000 Received: by yenl8 with SMTP id l8so885383yen.27 for ; Thu, 31 May 2012 01:47:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=JZE/06Z4Q5xlU2A2zi/bbApHHLiRwDu8elLfjZCV7cw=; b=e4y2SEuuYXWoITT5zxCT2ECz08Q3OT7QQaPkdxvX/F0L3MZUY5m6w9pxMhJpfY4L7y +RK0qLxzPQ/I1m1F9uCq/wtOWrGq24tr+Hq30ntEhUqhAMR4S9Njc9IrKwaE1GirSfxY jjVI4/dpZEVYqkkthxDBsSmyTS+FRmQGzzHStUHfyb64GyvUESHs10KlediVgduB8XTn gVC5JlRQmDj0d9+3MFL+zrsjqlCphAjUm7FDQ/MgaACaugMdQ/jOBxpPYi93AMGbhBOZ BsPWOSy1nd6e1W8jkeihnuCtRFMdhnvEEI4p6+BJR2wUEsKwGDdhqlkce4YXC2lNdjdN +tsQ== Received: by 10.42.140.136 with SMTP id k8mr521310icu.31.1338454074807; Thu, 31 May 2012 01:47:54 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.81.107 with HTTP; Thu, 31 May 2012 01:47:34 -0700 (PDT) From: Pushpalanka Jayawardhana Date: Thu, 31 May 2012 14:17:34 +0530 Message-ID: Subject: Changing default canonicalization algorithm To: dev@santuario.apache.org Content-Type: multipart/alternative; boundary=90e6ba1efda4ad549b04c1511fae --90e6ba1efda4ad549b04c1511fae Content-Type: text/plain; charset=ISO-8859-1 Hi all, I am using Santuario-Java 1.5.2 version. I generated a signature with following code, but having trouble shaping it to the requirements. I am still getting familiar with these and so grateful for any help. - *XMLSignature sig = new XMLSignature(doc, BaseURI, XMLSignature.ALGO_ID_SIGNATURE_RSA_SHA256); * * * I could see CanonicalizationMethodURI of 'sig' is http://www.w3.org/TR/2001/REC-xml-c14n-20010315. How can I change this to a later version like http://www.w3.org/2006/12/xml-c14n11? Thanks and Best Regards, -- Pushpalanka Jayawardhana | http://pushpalankajaya.blogspot.com Twitter: http://twitter.com/Pushpalanka | Slideshare: http://www.slideshare.net/Pushpalanka --90e6ba1efda4ad549b04c1511fae Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi all,

I am using Santuario-Java 1.5.2 version.=A0
I generated a signature with following code, but having trouble shaping it= to the requirements. I am still getting familiar with these and so gratefu= l for any help.

  • XMLSignature sig =3D new XMLSignature(do= c, BaseURI,=A0XMLSignature.ALGO_ID_SIGNATURE_RSA_SHA256);=A0

I could see=A0CanonicalizationMethodU= RI of 'sig' is http://www.w3.org/TR/2001/REC-xml-c14n-20010315.
How = can I change this to a later version like=A0
http://www.w3.org/2006/12/xml-c14n11?
http://pushpalankajaya.blogspot.com

Twitter: http://twitter.com/Pushpalanka |= Slideshare: http://www.slideshare.net/Pushpalanka



--90e6ba1efda4ad549b04c1511fae--