I would like to retrieve username and password programmatically stored in windows vault.
Is there a Java API which can be used to retrieve the username and password securely from the Windows Vault?
解决方案
Have you seen How do I store and retrieve credentials from the Windows Vault credential manager? I think you can refer this for an answer. Maybe it can help you with your question.
UPDATE
As mention by pcdev, you want to retrieve using Java. My mistake I did not read properly. I found one GitHub as he using java.jna.WindowsCredentialManager.
https://github.com/dariusz-szczepaniak/java.jna.WindowsCredentialManager
You might want to try this perhaps?