users@jaxb.java.net

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

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Wed, 10 Jan 2007 09:23:11 -0800

See Rebecca's answer to this at
http://forums.java.net/jive/thread.jspa?threadID=21658&tstart=15

Let's keep the discussion in one place.

Carolina Lanza wrote:
> 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
>


-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com