docs: private static X509KeyManager getKeyManager(final String algorithm, final KeyStore keystore,
                                                  final char[] password) throws Exception {
          val factory = KeyManagerFactory.getInstance(algorithm);
          factory.init(keystore, password);
          return (X509KeyManager) factory.getKeyManagers()[0];
      }