code: public void setPrivateKey(String privateKeyLocation, String keyPassword) {
  
          InputStream privateKeyInputStream = null;
  
          try {
              privateKeyInputStream = new FileInputStream(privateKeyLocation);
          }catch (FileNotFoundException fnfe){
              throw new KeyException("La ubicación del archivo de la llave privada es incorrecta", fnfe.getCause());
          }
  
          this.setPrivateKey(privateKeyInputStream, keyPassword);
      }
docs: @param privateKeyLocation    private key located in filesystem
  @param keyPassword           private key password
  
  @throws KeyException thrown when any security exception occurs