I am looking for a programmatically way to change the password that protect the Java KeyStore file. I know that keytool.exe have such option (the -storepasswd option) but I need a programmatically way. I looked at java.security.KeyStore but I couldn't find this option in this API.