Newsletter sign-up
View all newsletters

Enterprise Java Newsletter
Stay up to date on the latest tutorials and Java community news posted on JavaWorld

JavaWorld Daily Brew

Digital XML Signature with Certificate Chain



Hi!

I'm trying to validate a XML with a detached signature. There a certificate chain, like you can see in the example, and i have in my server a keystore with the certificates. Well, my qestion is how can i validate the certificate chain, and also the signature of the xml? Anyone have an example for me? I let you with the XML.

<?xml version="1.0" encoding="UTF-8" ?>
- -
-
(...)

-
-

-

9BoB5VASWdKHLbG0I81B7UwDU/k=

(...)SignatureValue>
-
-

(...)X509Certificate>
(...)X509Certificate>
(...)X509Certificate>

Let me know if you have any question about that... This is driving me crazy!

Thanks a lot for your help!

Cristovao