logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in  RSS Apache Lounge  


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.


Post new topic   Forum Index -> Coding & Scripting Corner View previous topic :: View next topic
Reply to topic   Topic: Digital Sign SOAP Body using Apache Santuario library
Author
venkiramal



Joined: 06 Jul 2015
Posts: 1
Location: USA, Jersey City

PostPosted: Mon 06 Jul '15 20:58    Post subject: Digital Sign SOAP Body using Apache Santuario library Reply with quote

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: 7128
Location: Germany, Next to Hamburg

PostPosted: Wed 08 Jul '15 23:13    Post subject: Reply with quote

I found an example at http://pushpalankajaya.blogspot.de/2014/03/signing-soap-messages-generation-of.html
Back to top


Reply to topic   Topic: Digital Sign SOAP Body using Apache Santuario library View previous topic :: View next topic
Post new topic   Forum Index -> Coding & Scripting Corner