code: public void openKeyStore(Path path, String keyStoreType, String keyStorePassword) throws IOException, NoSuchAlgorithmException, CertificateException, KeyStoreException {
  		this.keystore = KeyStore.getInstance(keyStoreType);
  		if (path!=null) {
  			InputStream keyStoreInputStream = ffr.openFile(path);
  			this.keystore.load(keyStoreInputStream, keyStorePassword.toCharArray());
  		} else {
  			this.keystore.load(null, keyStorePassword.toCharArray());
  		}
  	}
docs: **
  Opens a keystore on any Hadoop compatible filesystem
  
  @param path path to key store, if null then a new keystore is created
  @param keyStoreType
  @param keyStorePassword
  @throws IOException
  @throws NoSuchAlgorithmException
  @throws CertificateException
  @throws KeyStoreException