You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@santuario.apache.org by Jem Mawson <je...@loftinspace.com.au> on 2004/03/29 00:43:46 UTC

Signature Element (a user question, not dev)

Hello

First let me apologise for emailing the dev group with my user
questions, but it's the only group I could find for xml-security.

I'm new to this and have been looking at the examples that are shipped
with the Java library. I have been able to generate an enveloped
Signature element within a document without much effort.

In this signature, the Reference element in the SignedInfo has the
attribute URI="". I understand that this references the current
document, which is correct. In this case, I think I need to ensure the
Transform directives exclude the Signature element itself via nested
XPath elements. For example:

<ds:Transforms>
     <ds:Transform Algorithm="... cropped ...">
         <XPath>not(ancestor-or-self::Signature)</XPath>
     </ds:Transform>
</ds:Transforms>

Is this correct? If so, how can I achieve this programatically?

Thanks for your patience/help.
Jem


Good, real-world examples of detached signatures

Posted by "David Wall @ Yozons, Inc." <da...@yozons.com>.
Can anybody point to any significant use of detached signatures in any open
source or other example Java code?  I've looked at the samples that come
with the distro, and they mostly appear to be testing code than examples
that show anything that would be done in a typical application.

Like so much programming these days, there are no doubt many thousands of
users who have written code using XML DSigs, but seeing such examples is
really hard, and even books are hard to come by that show anything.  I mean,
it's so easy to take a chunk of XML and digitally sign it -- and it's
extremely fast because there's no canonicalization or issues with where the
XML was rooted, namespace, etc.  But then we have a worldwide standard for
doing this and there's almost nothing that I've found that gives clean,
crisp examples of using these capabilities.  I know they are out there, I'm
just having trouble finding them.

Thanks,
David


RE: Signature Element (a user question, not dev)

Posted by Scott Cantor <ca...@osu.edu>.
> In this signature, the Reference element in the SignedInfo has the
> attribute URI="". I understand that this references the current
> document, which is correct. In this case, I think I need to ensure the
> Transform directives exclude the Signature element itself via nested
> XPath elements. For example:

Just use the enveloped signature transform, it does exactly what you want.

> Is this correct? If so, how can I achieve this programatically?

There should be an example program that shows how to add the enveloped
transform before signing.

-- Scott