Return-Path: Delivered-To: apmail-xml-security-dev-archive@www.apache.org Received: (qmail 94187 invoked from network); 24 Sep 2008 05:11:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Sep 2008 05:11:20 -0000 Received: (qmail 37674 invoked by uid 500); 24 Sep 2008 05:11:16 -0000 Delivered-To: apmail-xml-security-dev-archive@xml.apache.org Received: (qmail 37654 invoked by uid 500); 24 Sep 2008 05:11:16 -0000 Mailing-List: contact security-dev-help@xml.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: Reply-To: security-dev@xml.apache.org List-Id: Delivered-To: mailing list security-dev@xml.apache.org Received: (qmail 37643 invoked by uid 99); 24 Sep 2008 05:11:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Sep 2008 22:11:16 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [222.73.24.84] (HELO song.cn.fujitsu.com) (222.73.24.84) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Sep 2008 05:10:18 +0000 Received: from tang.cn.fujitsu.com (tang.cn.fujitsu.com [10.167.250.3]) by song.cn.fujitsu.com (Postfix) with ESMTP id A2A0817003F for ; Wed, 24 Sep 2008 13:10:19 +0800 (CST) Received: from fnst.cn.fujitsu.com (localhost.localdomain [127.0.0.1]) by tang.cn.fujitsu.com (8.13.1/8.13.1) with ESMTP id m8O5AI48004190 for ; Wed, 24 Sep 2008 13:10:19 +0800 Received: from lxh (unknown [10.167.140.84]) by fnst.cn.fujitsu.com (Postfix) with SMTP id 9E0E4D4262 for ; Wed, 24 Sep 2008 13:12:49 +0800 (CST) Message-ID: <003801c91dfb$0b392120$548ca70a@lxh> From: "Ling Xiaohan" To: References: <006701c91d13$6de68da0$548ca70a@lxh> <48D8F39C.4090606@sun.com> Subject: Re: Help:Reference of local system file using JDK failed! Date: Wed, 24 Sep 2008 13:07:21 +0900 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-2022-jp"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 X-Virus-Checked: Checked by ClamAV on apache.org Thanks Sean, it works when BaseURI is set. ----- Original Message ----- > You need to set the base URI before you generate or validate the > XMLSignature. > Use the DOMSignContext.setBaseURI or DOMValidateContext.setBaseURI > methods. > > --Sean > > Ling Xiaohan wrote: >> Hi, >> >> I used XML-dsig classes in JDK6.0 for XML signature, but encountered >> an abjective >> problem. It seems that signature could not contain reference pointed to >> relative local >> path when using XML-dsig classes in JDK6.0. For instance, >> XMLSignatureFactory.newReference("test.txt",...) >> which want to make a reference to "test.txt" in the current directory. >> Unfortunately, the >> call threw exception about dereference. >> >> I know there is a class named ResolverLocalFilesystem in XML-dsig >> implementation of >> apache can solve above case. But in JDK6.0 is this a function limitation >> for XML signature? >> Or exist other method for relative local path reference? >> Anyone replied is appreciated. >> Thanks a lot. >> >> Nolen > > >