Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Digital Sign SOAP Body using Apache Santuario library |
|
Author |
|
venkiramal
Joined: 06 Jul 2015 Posts: 1 Location: USA, Jersey City
|
Posted: Mon 06 Jul '15 20:58 Post subject: Digital Sign SOAP Body using Apache Santuario library |
|
|
Hi All,
I have a requirement in java to digital sign the SOAP Body XML content and have decided to implement it using Apache Santuario library. The following libraries are in use.
wss4j-2.1.jar
xalan-2.7.2.jar
xmlsec-1.5.8.jar
The resultant SOAP Header should contain KeyInfo with following Secutiry elements.
<KeyInfo>
<SecurityTokenReference>
<X509Data>
<X509IssuerSerial>
<X509IssuerName>value</X509IssuerName>
<X509SerialNumber>value</X509SerialNumber>
</X509IssuerSerial>
</X509Data>
</SecurityTokenReference>
</KeyInfo>
But I could not acheive the above order of element node as the api allows me to set X509Data only under KeyInfo not directly inside SecurityTokenReference.
Please help me how to achieve the same.
regards,
venkiramal |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
|
Back to top |
|
|
|
|
|
|