I noticed there were a couple methods that code depended on that I did not 
include.  In case you decide to play with that at all instead of going the 
Apache HTTPClient route, here those methods are

private static KeyManager[] initKeyManager(KeyStore ks, char[] PASSWORD, String 
algorithm) throws Exception
{
KeyManagerFactory keyFactory = KeyManagerFactory.getInstance(algorithm);

keyFactory.init(ks, PASSWORD);
return keyFactory.getKeyManagers();
}
private static TrustManager[] initTrustManager(KeyStore ks, String algorithm) 
throws Exception
{
TrustManagerFactory trustFactory = TrustManagerFactory.getInstance(algorithm);
trustFactory.init(ks);
return trustFactory.getTrustManagers();
}

Chris Popp


      

Reply via email to