@Override public void saveKeyStore(File file,KeyStore keyStore,String keystorePassword){
  try {
    FileOutputStream fos=new FileOutputStream(file);
    keyStore.store(fos,keystorePassword.toCharArray());
  }
 catch (  CertificateException|NoSuchAlgorithmException|IOException|KeyStoreException e) {
    throw new KeyStoreAccessException("Unable to save KeyStore to file: " + file.getName(),e);
  }
}

@ Override public void saveKeyStore ( File file , KeyStore keyStore , String keystorePassword ) { try { FileOutputStream fos = new FileOutputStream ( file ) ; keyStore . store ( fos , keystorePassword . toCharArray ( ) ) ; } catch ( CertificateException | NoSuchAlgorithmException | IOException | KeyStoreException e ) { throw new KeyStoreAccessException ( "Unable to save KeyStore to file: " + file . getName ( ) , e ) ; } }
exports the keystore to the specified file .
