Code example for KeyStoreException

Methods: printStackTrace

0
		} catch (UnrecoverableKeyException e) {
			// TODO Auto-generated catch block 
			e.printStackTrace();
		} catch (KeyStoreException e) {
			// TODO Auto-generated catch block 
			e.printStackTrace();
		} 
		sf.setHostnameVerifier(SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER);
		Scheme sch = new Scheme("https", sf, PORT);	// PORT = 443
		httpclient.getConnectionManager().getSchemeRegistry().register(sch);
 
		// Return the initialized instance of our httpclient 
		return httpclient;
	} 
 
	/* 
	 * This is a simple helper function to setup the query parameters. We need the following: 
	 *	1. appId 
	 *	2. appKey 
	 *	3. id 
	 *