Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Problem with intializing KeyManagerFactory

radiatejavaMar 30 2009 — edited Oct 29 2009
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 ?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 26 2009
Added on Mar 30 2009
10 comments
2,965 views