title: Fortify Often Misused Authentication java.net.InetAddress
body: <p>We are using Fortify for static code analysis. One of the issue reported by Fortify scan is "Often Misused: Authentication". The issue is flagged for all the occurrences of usage of one of the following methods from the class "java.net.InetAddress".</p>
  
  <pre><code>getAddress()
  getByName(bindAddress)
  getHostName()
  getHostAddress()
  getCanonicalHostName()
  getLocalHost()
  getAllByName()
  </code></pre>
  
  <p>What is the ideal fix for the same?</p>
  
  <p>One possible way is suggested <a href="http://www.hpenterprisesecurity.com/vulncat/en/vulncat/java/often_misused_authentication.html" rel="nofollow">here</a>, i am not sure do we have any other ways to address this issue. </p>
  
  <p>Thanks</p>