XML signature validation

  • Thread starter =?ISO-8859-15?Q?Tobias_Schr=F6er?=
  • Start date



Hello everyone,

I'm stuck. I try to implement a XML data signature validation using the
javax.xml.crypto.* packages from SUN, included in JWSDP 2.0.
Differently to the examples provided with the download, my public key is
(intentionally) not included in the xml file.
The public and private keys and the signed XML file were created with a
C#.Net 1.1 application. The public key file looks like this:


my signed XML file looks somethimg like this:

<Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />
Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" />
<Reference URI="#obj">
<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<Object Id="obj">

According to the "validate" examples of the JWSDP 2.0, I need to get the
public key, but I do not now how.

Any suggestion how to solve this in Java?



Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question