title: Handling passwords used for auth in source code
body: <p>Assuming that I'm trying to pull from a RESTful api that uses basic authentication / basic certificates, what would be the best way to store that user name and password in my program?   Right now it's just sitting there in plaintext.</p>
  
  <pre><code>UsernamePasswordCredentials creds = new UsernamePasswordCredentials("myName@myserver","myPassword1234");
  </code></pre>
  
  <p>Is there some way of doing this that is more security minded?</p>
  
  <p>Thanks</p>