[WSS4J] [WSS$J] Problems in the doall sample

Ruchith Fernando <ruchithfernando-/[email protected]> Mon, 9 Feb 2004 04:51:26 -0800 (PST)
Newsgroups gmane.text.xml.wss4j
Message-ID <[email protected]>
--0-224644793-1076331086=:32645
Content-Type: multipart/alternative; boundary="0-1822435481-1076331086=:32645"

--0-1822435481-1076331086=:32645
Content-Type: text/plain; charset=us-ascii

Hi guys,
 
I'm trying to run the doall sample and I have a small problem :-(

WSSecurityEngine is throwing an org.apache.xml.security.encryption.XMLEncryptionException at Line 951
 
The exception : 
Exception at 223 Padding: ISO10126PADDING not implemented class org.apache.xml.security.encryption.XMLEncryptionException

xmlCipher = XMLCipher.getInstance(symEncAlgo);
 
My request seems to be fine [Please refer :tcpmon.txt : Attatched]
 
In the above line 
symEncAlgo has the value http://www.w3.org/2001/04/xmlenc#tripledes-cbc which is identical to XMLCipher.TRIPLEDES.
 
I'm wondering this might me a problem with XMLSecurity but I thought one of u guys might have come across this. If so can you please let me knwo of a remedy to this problem OR am I goin in a totally wrong path? :-)
 
SecHttp service is properly hosted in axis and the actor information is properly sent according to my knowledge.
 
Thanks a lot
 
Ruchith



---------------------------------
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online
--0-1822435481-1076331086=:32645
Content-Type: text/html; charset=us-ascii

<DIV>
<DIV>Hi guys,</DIV>
<DIV>&nbsp;</DIV>
<DIV>I'm trying to run the <STRONG>doall</STRONG> sample and I have a small problem :-(</DIV>
<DIV><BR>WSSecurityEngine is throwing an org.apache.xml.security.encryption.XMLEncryptionException at Line 951</DIV>
<DIV>&nbsp;</DIV>
<DIV>The exception : </DIV>
<DIV>Exception at 223 Padding: ISO10126PADDING not implemented class org.apache.xml.security.encryption.XMLEncryptionException<BR></DIV>
<DIV><STRONG><EM>xmlCipher = XMLCipher.getInstance(symEncAlgo);</EM></STRONG></DIV>
<DIV>&nbsp;</DIV>
<DIV>My request seems to be fine [Please refer :tcpmon.txt : Attatched]</DIV>
<DIV>&nbsp;</DIV>
<DIV>In the above line </DIV>
<DIV><STRONG><EM>symEncAlgo </EM></STRONG>has the value <A href="http://www.w3.org/2001/04/xmlenc#tripledes-cbc">http://www.w3.org/2001/04/xmlenc#tripledes-cbc</A>&nbsp;which is identical to XMLCipher.TRIPLEDES.</DIV>
<DIV>&nbsp;</DIV>
<DIV>I'm wondering this might me a problem with XMLSecurity but I thought one of u guys might have come across this. If so can you please let me knwo of a remedy to this problem OR am I goin in a totally wrong path? :-)</DIV>
<DIV>&nbsp;</DIV>
<DIV>SecHttp service is properly hosted in axis and the actor information is properly sent according to my knowledge.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks a lot</DIV>
<DIV>&nbsp;</DIV>
<DIV>Ruchith</DIV></DIV><p><hr SIZE=1>
Do you Yahoo!?<br>
Yahoo! Finance: <a href="http://us.rd.yahoo.com/evt=22055/*http://taxes.yahoo.com/filing.html">Get your refund fast by filing online</a>
--0-1822435481-1076331086=:32645--
--0-224644793-1076331086=:32645
Content-Type: text/plain; name="tcpmon.txt"
Content-Description: tcpmon.txt
Content-Disposition: inline; filename="tcpmon.txt"


==============
Listen Port: 8081
Target Host: 127.0.0.1
Target Port: 8080
==== Request ====
POST /axis/services/SecHttp HTTP/1.0
Content-Type: text/xml; charset=utf-8
Accept: application/soap+xml, application/dime, multipart/related, text/*
User-Agent: Axis/1.2alpha
Host: 127.0.0.1:8081
Cache-Control: no-cache
Pragma: no-cache
SOAPAction: "secSend"
Content-Length: 4427

<?xml version="1.0" encoding="UTF-8"?>
   <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <soapenv:Header>
         <wsse:Security xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/07/secext" soapenv:actor="http://someuri" soapenv:mustUnderstand="true">
            <xenc:EncryptedKey>
               <xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-1_5"></xenc:EncryptionMethod>
               <ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
                  <wsse:SecurityTokenReference>
                     <wsse:KeyIdentifier EncodingType="wsse:Base64Binary" ValueType="wsse:X509v3">MIIBYjCCAQygAwIBAgIQIWFO9wjTxZJOxcgGtBqGVTANBgkqhkiG9w0BAQQFADAPMQ0wCwYDVQQDEwRkaW1zMB4XDTAzMDUxMjE2NDExN1oXDTM5MTIzMTIzNTk1OVowDzENMAsGA1UEAxMEZGltczBcMA0GCSqGSIb3DQEBAQUAA0sAMEgCQQDrmZ7T2MFQNwloGughSRoapkmvbtPAwBXt+21bFzqfXJ1SpliN6CCRczIflSQCCCyBZ2j0dA51n/ZDWDizdNenAgMBAAGjRDBCMEAGA1UdAQQ5MDeAEBsIiVESxf6DrjkLYXayxmKhETAPMQ0wCwYDVQQDEwRkaW1zghAhYU73CNPFkk7FyAa0GoZVMA0GCSqGSIb3DQEBBAUAA0EAxSGwjZ/FOScVLlVTxic1FKmPd8WTg1DrJFDWuxMTx6n0Zxn4N8ZxkAl7TNx/JcIlG+dlnyWZ0in3dOEtF0g5mA==</wsse:KeyIdentifier>
                  </wsse:SecurityTokenReference>
               </ds:KeyInfo>
               <xenc:CipherData>
                  <xenc:CipherValue>3eicBk3hg1DxPU6VZExsbre1VhkMzH/1Cwa0ZCO+YT1Yt7dNtspmPK+pY4bvpGKi3nS3q+qKjrI5BIG3nqiyYQ==</xenc:CipherValue>
               </xenc:CipherData>
               <xenc:ReferenceList>
                  <xenc:DataReference URI="#id-25358187"></xenc:DataReference>
               </xenc:ReferenceList>
            </xenc:EncryptedKey>
            <wsse:BinarySecurityToken xmlns:wsu="http://schemas.xmlsoap.org/ws/2002/07/utility" EncodingType="wsse:Base64Binary" ValueType="wsse:X509v3" wsu:Id="id-605423">MIIBYjCCAQygAwIBAgIQIWFO9wjTxZJOxcgGtBqGVTANBgkqhkiG9w0BAQQFADAPMQ0wCwYDVQQDEwRkaW1zMB4XDTAzMDUxMjE2NDExN1oXDTM5MTIzMTIzNTk1OVowDzENMAsGA1UEAxMEZGltczBcMA0GCSqGSIb3DQEBAQUAA0sAMEgCQQDrmZ7T2MFQNwloGughSRoapkmvbtPAwBXt+21bFzqfXJ1SpliN6CCRczIflSQCCCyBZ2j0dA51n/ZDWDizdNenAgMBAAGjRDBCMEAGA1UdAQQ5MDeAEBsIiVESxf6DrjkLYXayxmKhETAPMQ0wCwYDVQQDEwRkaW1zghAhYU73CNPFkk7FyAa0GoZVMA0GCSqGSIb3DQEBBAUAA0EAxSGwjZ/FOScVLlVTxic1FKmPd8WTg1DrJFDWuxMTx6n0Zxn4N8ZxkAl7TNx/JcIlG+dlnyWZ0in3dOEtF0g5mA==</wsse:BinarySecurityToken>
            <ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
               <ds:SignedInfo>
                  <ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></ds:CanonicalizationMethod>
                  <ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"></ds:SignatureMethod>
                  <ds:Reference URI="#id-23328673">
                     <ds:Transforms>
                        <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></ds:Transform>
                     </ds:Transforms>
                     <ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"></ds:DigestMethod>
                     <ds:DigestValue>QlB5kSoOHcUHUv/yLtMZR4R5aJw=</ds:DigestValue>
                  </ds:Reference>
               </ds:SignedInfo>
               <ds:SignatureValue>rsca0OaLVtrrCy9FeGwytaXplgIdrxRgF+v31x8W44Ya6XsrMD+ngWrqOc4Jilg9+2Njha4XSDEc0bYdifXyqQ==</ds:SignatureValue>
               <ds:KeyInfo Id="id-6771926">
                  <wsse:SecurityTokenReference>
                     <wsse:Reference URI="#id-605423"></wsse:Reference>
                  </wsse:SecurityTokenReference>
               </ds:KeyInfo>
            </ds:Signature>
            <wsu:Timestamp xmlns:wsu="http://schemas.xmlsoap.org/ws/2002/07/utility">
               <wsu:Created>2004-02-09T14:03:36Z</wsu:Created>
            </wsu:Timestamp>
         </wsse:Security>
      </soapenv:Header> 
      <soapenv:Body xmlns:wsu="http://schemas.xmlsoap.org/ws/2002/07/utility" wsu:Id="id-23328673">
         <xenc:EncryptedData Id="id-25358187" Type="http://www.w3.org/2001/04/xmlenc#Content">
            <xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#tripledes-cbc"></xenc:EncryptionMethod>
            <xenc:CipherData>
               <xenc:CipherValue>CYg33owM5hrpdaa/Dko6w3crPDXbq78jy220AU2IwTRugk7sRsSgi3v51FFn7c7qWpUL1M8SpZ6l5OydezVrw+SxR6Uo0MlvGOo5hBeCT2e8f//WPny92Uo1L0Uok5qcS+01foVTUJOe22F1MBxrkd7+dCKiNj/OB+HLg3NKnkShAoEKqUdV5/a68abtV8kuZsuBAze7GfZwDabmgf93WDK3yeZmyb3B8Erm2KeYmbwMRrybN0vTB0p36wlCwdHuHKt2tk4NEbXxmO29jdMwa2u969qeX5k3WC1NBQkcv3APHsLwIthsltdZdxfYhCJurnqys1v8EqqMWvrwMsHoQjGRdlTYinBogKFoYmJEyZywL9+ycAwK+SURh0PiWTASWL05EV/Oac4SwB+phTDSywwOJxhhaNkYucq4ZQZJe8ZacJxeQUvXA8EGbrn17jXhqTqTeVDF
ty8AgkzxJPBD4ypWNMbQLHMQ5W/EoeT6898Y7PdDv13vozjLCsyKA1x19+gXvPt18CFR/wjbq8pS
Dqg+O+2y5jxMD2MRjGk2gpJykvQRjFf0mMP0uhBgPHdTJp+2IgoRrmoh2Az75c5pIWg27i7HNdIX
q+TH8rh4RNSThdnepeEH+KiH9/D2K5FdY4OZwsDKd3wLd+/992qlqzDCKGmLt6P/u4oUpQpluDK0
XnBtuSnCfFKcVFMe+dESocwj5PDyYnM=</xenc:CipherValue>
            </xenc:CipherData>
         </xenc:EncryptedData>
      </soapenv:Body>
   </soapenv:Envelope>
   
   ==== Response ====
HTTP/1.1 500 Internal Server Error
Content-Type: text/xml; charset=utf-8
Date: Mon, 09 Feb 2004 14:03:40 GMT
Server: Apache Coyote/1.0
Connection: close

<?xml version="1.0" encoding="UTF-8"?>
   <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
      <soapenv:Body>  
         <soapenv:Fault>   
            <faultcode>soapenv:Server.generalException</faultcode>   
            <faultstring>WSDoAllReceiver: security processing failed; nested exception is: 	org.apache.xml.security.encryption.XMLEncryptionException: Paddding: ISO10126PADDING not implementedOriginal Exception was javax.crypto.NoSuchPaddingException: Paddding: ISO10126PADDING not implemented</faultstring>  
         </soapenv:Fault> 
      </soapenv:Body>
   </soapenv:Envelope>
==============

--0-224644793-1076331086=:32645--


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn