At the moment we store the passwords in a plain text file to sign into git and other services. We want to finaly get rid of it and use the windows credential manager. The only problem we are facing is that I don't seem to find a solution to do it java.
I already looked at the following topics:
How do I store and retrieve credentials from the Windows Vault credential manager?
How to retrieve username and password from windows vault using java?
But for me they don't give me clear answer which api to use. If you could help me on my way to access this credential manager that would be awesome.
We actually have the same issue come up in our company. We have a Java Client Application running on windows and the customer asked for a password saving functionality. So we turned to the windows credential manager for that. So much for the background.
It seems that there is no java library for that, although there might be one. (btw: your second link is a 404).
Thus the way we planned is to write java code using the java native interface with C accessing the windows credential manager. BUT I found this library, which has a java class written for accessing the windows credential manager.
I think, this might help.