See the code in Apache WSS4J

-- dims

On Apr 1, 2005 10:57 PM, John Harrison <[EMAIL PROTECTED]> wrote:
>  
> This is my encrypted file i can Decrypt the  <wsse:Password> element and
> write this out to a file but having spent the last few hours tring to find
> out why i can access ne to remove the cipher elements. 
>   
> I've attached source code, Someone Please tell me where i'm going wrong. 
>   
> Thanks in advance 
>   
>   
> John 
>   
>   
> <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
> xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/secext";
> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
> xmlns:xsd="http://www.w3.org/2001/XMLSchema";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> soapenv:mustUnderstand="1">
>  <soapenv:Header>
>   <wsse:Security
> xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd";
> soapenv:mustUnderstand="0">
>    <wsse:UsernameToken>
>     <wsse:Username
> wsu:Id="UsernameToken">username</wsse:Username>
>     <wsse:Password><EncryptedData
> xmlns="http://www.w3.org/2001/04/xmlenc#";
> Id="wsse:Password"
> Type="http://www.w3.org/2001/04/xmlenc#Content";>
>     <EncryptionMethod
> Algorithm="http://www.w3.org/2001/04/xmlenc#DESede"/>
>     <CipherData>
>   <CipherValue>+VJQClJAx8zOMijKdwfnug==</CipherValue>
>     </CipherData>
> </EncryptedData></wsse:Password>
>    </wsse:UsernameToken>
>   </wsse:Security>
>   <wsse:Signature/>
>  </soapenv:Header>
>  <soapenv:Body>
>   <serviceMethod
> soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";>
>    <arg1 xsi:type="xsd:string"><EncryptedData
> xmlns="http://www.w3.org/2001/04/xmlenc#"; Id="arg1"
> Type="http://www.w3.org/2001/04/xmlenc#Content";>
>     <EncryptionMethod
> Algorithm="http://www.w3.org/2001/04/xmlenc#DESede"/>
>     <CipherData>
>   <CipherValue>sJzgu8mTQpJ2Xu/ABKVfBQ==</CipherValue>
>     </CipherData>
> </EncryptedData></arg1>
>   </serviceMethod>
>  </soapenv:Body>
> </soapenv:Envelope> 
> 


-- 
Davanum Srinivas - http://webservices.apache.org/~dims/

Reply via email to