title: Java OS Authentication
body: <p>I want to authenticate user with OS. I am getting username, password as input from user &amp; I simply want to check with os whether that username, password is right or wrong.</p>
  
  <p>I don't want to do LDAP authenticating. Only os authentication where my program is running. Second thing program should run on windows from xp on-wards, linux &amp; if possible unix flavors.</p>
  
  <p>Is there any way I can achieve that?</p>
  
  <p>While googling I found : <a href="https://github.com/twall/jna" rel="nofollow">https://github.com/twall/jna</a></p>
  
  <p>But still trying to figure out whether this library is right for my requirement or not</p>