users@jaxb.java.net

Binding to javax.xml.crypto.dsig.XMLSignature?

From: Carolina Lanza <lanza.eurecom_at_gmail.com>
Date: Tue, 9 Jan 2007 16:59:47 +0100

Hi,

I have a schema importing the XML-Signature Syntax and Processing
schema (http://www.w3.org/TR/xmldsig-core/xmldsig-core-schema.xsd
) and I use it to handle digital signatures such as following:

<xs:complexType name="TimeStampType">
<xs:sequence>
<xs:element name="Time" type="xs:dateTime"/>
<xs:element ref="ds:Signature"/>
</xs:sequence>
</xs:complexType>

I would like to bind the SignatureType (type of the Signature element) to
the javax.xml.crypto.dsig.XMLSignature offered by Java 6. I have tried to
use the JAXB binding techniques but without success.

I would like to know if it is possible to bind a whole schema (the signature
one) to a Java class. If yes, could you, please, give me hints about how I
can achieve that?
If not, what do you suggest?

Thanks in advance for your help

Carolina