I need to save the username and credentials of Windows for the subsequent launch of some process that requires these credentials.
When I collect this data as user inputs, I want to verify the credentials are correct. Is there a built-in api in Java that can help me verify Windows system credentials?
I went through the LoginContext class, but it seems that it can only be used for single sign-on purposes. Another suggestion I received was to try to start a process that requires these credentials and see if it works or not. But that does not look right.
Please let me know if someone has done this before or someone knows how to do it.
Thanks Piyush
java windows validation credentials
user1774433
source share