Here you can find the source of getKeyManagerFactory(KeyStore store, char[] password)
public static KeyManagerFactory getKeyManagerFactory(KeyStore store, char[] password) throws UnrecoverableKeyException, KeyStoreException
//package com.java2s; import java.security.*; import javax.net.ssl.*; public class Main { public static KeyManagerFactory getKeyManagerFactory(KeyStore store, char[] password) throws UnrecoverableKeyException, KeyStoreException { KeyManagerFactory kmFactory = null; try {/*w ww.j a v a 2s . c om*/ //kmFactory = KeyManagerFactory.getInstance( KMFACTORY_ALGORITHM ); kmFactory = KeyManagerFactory.getInstance(KeyManagerFactory.getDefaultAlgorithm()); kmFactory.init(store, password); } catch (NoSuchAlgorithmException nsae) { // Leave kmFactory as null } return kmFactory; } }