santuario-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sean Mullan <Sean.Mul...@Sun.COM>
Subject Re: Help:Reference of local system file using JDK failed!
Date Tue, 23 Sep 2008 13:48:12 GMT
You need to set the base URI before you generate or validate the XMLSignature.
Use the DOMSignContext.setBaseURI or DOMValidateContext.setBaseURI methods.


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

View raw message