code: private static KeyManagerFactory createKeyManagers(String filepath, String keystorePassword, String keyPassword)
              throws FileNotFoundException, KeyStoreException, IOException, NoSuchAlgorithmException, CertificateException, UnrecoverableKeyException {
          KeyStore keyStore = KeyStore.getInstance("JKS");
          try (InputStream keyStoreIS = new FileInputStream(filepath)) {
              keyStore.load(keyStoreIS, keystorePassword.toCharArray());
          }
          KeyManagerFactory kmf = KeyManagerFactory.getInstance(KeyManagerFactory.getDefaultAlgorithm());
          kmf.init(keyStore, keyPassword.toCharArray());
          return kmf;
      }
docs: Creates the key managers required to initiate the {@link SSLContext}, using a JKS keystore as an input.
  
  @param filepath - the path to the JKS keystore.
  @param keystorePassword - the keystore's password.
  @param keyPassword - the key's passsword.
  @return {@link KeyManager} array that will be used to initiate the {@link SSLContext}.
  @throws Exception