We’d like to start with a JAXB object (Document) and then serialize and sign it 
into a new JAXB object (SignedDocument). Then we’d like to embed the 
SignedDocument into another object (Message) and sign that to produce a new 
JAXB object (SignedMessage).

We can create the secure XMLStreamWriter easily enough and sign the document 
easily enough but it’s not clear how we actually read the generated signature 
back using JAXB. 

What’s interesting is Santuario appears to contain JAXB bindings for the XML 
Signature Schema in 
https://github.com/apache/santuario-java/tree/trunk/src/main/java/org/apache/xml/security/binding/xmldsig.
 But there’s no binding for the ‘Signature’ element.

Any ideas here? Is this possible? Is there a test that shows how to use the 
JAXB bindings?

Reply via email to