Problem with intializing KeyManagerFactory
I am facing an issue with creating the KeyManagerFactory. I want to add 2 key entries to a JKS keystore using the method myKeyStore.setKeyEntry(alias, privateKey, password, certificate[]) and this is fine.
However, when trying to initialize a KeyManagerFactory using KeyManagerFactory.init(myKeyStore, <password>), what password can I use ? Why is the method designed in such a way ?