title: .Net SecureString in Java
body: <p>I am trying to use a 3rd party authentication web service at a customer site. the web services was written in .Net and accepts SecureString as password type.  </p>
  
  <pre><code>AuthResult Login(string username, SecureString passkey)
  </code></pre>
  
  <p>My app is written in Java and there is no compatible type for SecureString in Java that I can use :( When I generate an axis proxy, it generates a stub with no members for SecureString, and hence I am not able to make the authentication call to the service.</p>
  
  <pre><code>public class SecureString  implements java.io.Serializable {
      public SecureString() {
          ...
      }
  }
  </code></pre>
  
  <p>I am trying <a href="http://sanguinecomputing.com/a-secure-string-implementation-for-long-term-storage-of-sensitive-data-in-java/" rel="nofollow">http://sanguinecomputing.com/a-secure-string-implementation-for-long-term-storage-of-sensitive-data-in-java/</a> but I am not very hopeful  </p>
  
  <p>Can anyone help me with how to overcome this interoperability issue? I am looking for a way to send parameter of type secureString from Java app code to .Net Service.</p>