This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
We are building an intranet site, where we want to authenticate the user on the basis of his windows login, instead of providing him a login page. This will help the users to remember their password easily. How this can be achieved thru java.
You can retrieve the user name using getProperty("user.name"), but I'm sure you'll have to resort to JNI for the password. Or more likely, you will have to hash a String and compare that to the stored password.