code: private static KeyStore loadKeyStore(InputStream is, String pass)
  			throws InitializationException, KeyStoreException,
  			NoSuchAlgorithmException, CertificateException, IOException {
  			KeyStore ks = KeyStore.getInstance(KeyStore.getDefaultType());
  			ks.load(is, pass.toCharArray());
  			return ks;
  	}
docs: Helper to load a {@link KeyStore} instance.
  
  @param is {@link InputStream} representing contents of a keyStore
  @param pass the password of the keyStore
  @return an instance of the new loaded {@link KeyStore}
  @throws NoSuchAlgorithmException
  @throws CertificateException
  @throws IOException
  @throws KeyStoreException