[WSS4J] How to verify XML Signature in SeverSide Handler
"Nithya" <nithya-KbPxBdIIuGhWk0Htik3J/[email protected]> Sat, 21 Feb 2004 12:41:16 +0530
| Newsgroups | gmane.text.xml.wss4j |
|---|---|
| Message-ID | <001101c3f849$eb5d30c0$3d05a8c0@nithya> |
This is a multi-part message in MIME format.
------=_NextPart_000_000E_01C3F877.FF2446B0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
All,
Here is the code snippet, which is part of my ClientSide Handler.=20
WSSignEnvelope wsSignBuilder =3D new WSSignEnvelope();
wsSignBuilder.setUserInfo("d9a7bb54-ab27-43b5-b59e-50e7bfc1d343", =
"pfxpass");
Document signedDoc =3D wsSignBuilder.build(utDoc, crypto);
Message signedWSSignEnvMsg =3D =
(Message)AxisUtil.toSOAPMessage(signedDoc);
msgContext.setCurrentMessage(signedWSSignEnvMsg);
Basically im trying to add XML Signature to the SOAP Request in the =
client side handler and in the server side handler, i want to verify it. =
How do i verify the same in the server side?
Can anyone please help me?
Regards,
Nithya.M
------=_NextPart_000_000E_01C3F877.FF2446B0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1276" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>All,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2> Here is the code snippet, =
which is=20
part of my ClientSide Handler. </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT><FONT face=3DArial =
size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2> WSSignEnvelope =
wsSignBuilder =3D=20
new=20
WSSignEnvelope();<BR> wsSignBuilder.setUserInfo("d9a7bb5=
4-ab27-43b5-b59e-50e7bfc1d343",=20
"pfxpass");<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2> Document signedDoc =
=3D=20
wsSignBuilder.build(utDoc, crypto);<BR> Message=20
signedWSSignEnvMsg =3D =
(Message)AxisUtil.toSOAPMessage(signedDoc);</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2> =20
msgContext.setCurrentMessage(signedWSSignEnvMsg);</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> Basically im trying to add XML Signature to the SOAP =
Request=20
in the client side handler and in the server side handler, i want to =
verify it.=20
How do i verify the same in the server side?</DIV>
<DIV> </DIV>
<DIV> Can anyone please help me?</DIV>
<DIV> </DIV>
<DIV>Regards,</DIV>
<DIV>Nithya.M<BR></DIV></FONT></BODY></HTML>
------=_NextPart_000_000E_01C3F877.FF2446B0--
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click