code: public static KeyStore loadKeyStore(File file, String password) throws KSIException {
          notNull(file, "Trust store file");
          FileInputStream input = null;
          KeyStore keyStore = null;
          try {
              keyStore = KeyStore.getInstance("JKS");
              char[] passwordCharArray = password == null ? null : password.toCharArray();
              input = new FileInputStream(file);
              keyStore.load(input, passwordCharArray);
          } catch (GeneralSecurityException | IOException e) {
              throw new KSIException("Loading java key store with path " + file + " failed", e);
          } finally {
              closeQuietly(input);
          }
          return keyStore;
      }
docs: Loads and returns the {@link java.security.KeyStore} from the file system.
  
  @param file file to load from file system.
  @param password password to access the keystore.
  
  @return {@link java.security.KeyStore}
  
  @throws KSIException