santuario-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Colm O hEigeartaigh <cohei...@apache.org>
Subject Re: XPATH Transform
Date Tue, 28 Aug 2012 10:11:32 GMT
Here is an example:

https://svn.apache.org/repos/asf/santuario/xml-security-java/trunk/src/test/java/org/apache/xml/security/test/dom/signature/CreateSignatureTest.java

Colm.

On Tue, Aug 28, 2012 at 11:01 AM, Hariprasath <
hariprasath.mohankumar@gmail.com> wrote:

> Hi,
>               Im trying to add XPATH transform in my digital signature and
> couldn't make it work using the addTransform() method in the transform
> class.
> The error im getting is posted below.
>
> Original Exception was
> org.apache.xml.security.transforms.TransformationException: Cannot find
> ds:XPath
> in Transform
>         at
>
> org.apache.xml.security.signature.Reference.getContentsAfterTransformation(Refer
> ence.java:447)
>         at
>
> org.apache.xml.security.signature.Reference.dereferenceURIandPerformTransforms(R
> eference.java:600)
>         ... 5 more
> Caused by: org.apache.xml.security.transforms.TransformationException:
> Cannot
> find ds:XPath in Transform
>         at
>
> org.apache.xml.security.transforms.implementations.TransformXPath.enginePerformT
> ransform(TransformXPath.java:93)
>         at
>
> org.apache.xml.security.transforms.Transform.performTransform(Transform.java:304
> )
>         at
>
> org.apache.xml.security.transforms.Transforms.performTransforms(Transforms.java:
> 277)
>         at
>
> org.apache.xml.security.signature.Reference.getContentsAfterTransformation(Refer
> ence.java:431)
>         ... 6 more
>
>
> Can you please let me know how can i add a XPATH tranform to address a
> part of
> the document that is signed?
>
> Thanks
> Hariprasath
>
>


-- 
Colm O hEigeartaigh

Talend Community Coder
http://coders.talend.com

Mime
View raw message