title: How to get windows logon credentials from a Swing application?
body: <p>How would I go about getting the Windows user credentials from a Swing application?</p>
  
  <p>I am working on an internal (corporate) Swing application. Currently the user has to login to the application using a login screen, which then connects to an app server which authenticates the user against the company LDAP server.</p>
  
  <p>Since the user has already logged in to his workstation using the same credentials, is there any way that a Swing application can get these credentials from Windows itself and then automatically log the user in (SSO)? I know this is possible because I have seen some other applications do it, but I don't know how to go about doing this with Swing/Java.</p>