title: Failed to assert identity with UsernameToken when connecting to weblogic web service using wss4j
body: <p>I'm trying to connect to a web service using wss4j in order to wrap my xml with a username token security with password in digest form, below is my request output:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"&gt;
  &lt;soapenv:Header&gt;
  &lt;wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"&gt;
  &lt;wsse:UsernameToken wsu:Id="UsernameToken-C53A9DE4F384C9293314044748291431"&gt;
  &lt;wsse:Username&gt;weblogicdev&lt;/wsse:Username&gt;
  &lt;wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest"&gt;cfxACgO/wSzJSIjd9r8119BURWY=&lt;/wsse:Password&gt;
  &lt;wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary"&gt;76O2tFwe2NQLw/ZOiTgtyA==&lt;/wsse:Nonce&gt;
  &lt;wsu:Created&gt;2014-07-04T11:53:49.141Z&lt;/wsu:Created&gt;
  &lt;/wsse:UsernameToken&gt;
  &lt;/wsse:Security&gt;
  &lt;/soapenv:Header&gt;
  &lt;soapenv:Body&gt;
  &lt;mdsl:CustomerRequest xmlns:mdsl="www.mdsl.eft.cms.com"&gt;
  &lt;mdsl:Institution&gt;1
  &lt;/mdsl:Institution&gt;
  &lt;mdsl:Customer_ID&gt;00236615
  &lt;/mdsl:Customer_ID&gt;
  &lt;mdsl:Data_Level&gt;A
  &lt;/mdsl:Data_Level&gt;
  &lt;/mdsl:CustomerRequest&gt;   
  &lt;/soapenv:Body&gt;
  &lt;/soapenv:Envelope&gt;
  </code></pre>
  
  <p>I can't seem to figure out why this request is giving me a:</p>
  
  <pre><code>&lt;?xml version='1.0' encoding='UTF-8'?&gt;
  &lt;env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"&gt;
  &lt;env:Body&gt;
  &lt;env:Fault xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"&gt;
  &lt;faultcode&gt;wsse:FailedAuthentication&lt;/faultcode&gt;
  &lt;faultstring&gt;Failed to assert identity with UsernameToken.&lt;/faultstring&gt;
  &lt;/env:Fault&gt;
  &lt;/env:Body&gt;
  &lt;/env:Envelope&gt;
  </code></pre>
  
  <p>But when I implement ws security on jdev with password digest the request works.(jax-ws implementation with weblogic api)</p>
  
  <p>The username weblogicdev and password weblogic123 are valid and the request worked when the policy I put on the web service was a username password token plain (clear text password)</p>
  
  <p>Does oracle process the digest password differently than the one made with wss4j ?
  and if it does, does anyone have an algorithm I can use in order to replicate this password digest generation ?</p>