title: What parameters for an NTLM authentication can be automatized , and how to do it with java?
body: <p>I want to know what parameters can be automatized out of the 6 used during an NTLM authentication, which are:</p>
  
  <p>"Username" - The one used to login on the Operating System's profile currently in use. -<em>Already automatized, using <code>System.getProperty("user.name")</code></em></p>
  
  <p>"Password" - Same as the above. -<em>Probably can't be automated, but i'm never sure till i try and ask...</em></p>
  
  <p>"ProxyAddress" - Address of the proxy, to which the authentication is "handshaked to" in order to pass. -<em>I already pseudo-automatized, but its fixed code, thus bad.</em></p>
  
  <p>"ProxyPort" - The listening port on the proxy previously explained. -<em>I already pseudo-automatized, but its fixed code, thus bad.</em></p>
  
  <p>"Workstation" - My PC's ID in the local network or something...I'm currently using my machine's property ID, and its working, but i have no idea if its the correct value, or if there is a need for a value in the first place. -<em>No idea how to automatize, but i know it's possible. NEED HELP</em></p>
  
  <p>"Domain" - No idea which domain it refers to, thus no idea what value it should have...leaving it blank seems to be working... -<em>No idea how to automatize, but i know it's possible. NEED HELP</em></p>
  
  <p>EXTRA INFO: I'm using the HtmlClient library for the process, including authentication.</p>
  
  <pre><code>DefaultCredentialsProvider credentialProvider = (DefaultCredentialsProvider) webClient.getCredentialsProvider();
      credentialProvider.addNTLMCredentials(username, password, proxyAddress, proxyPort, workstation, domain);
      webClient.setUseInsecureSSL(true);
  </code></pre>