docs: public static PrivateKey readPasswordProtectedPrivateKey(final File encryptedPrivateKeyFile,
  		final String password, final String algorithm)
  		throws IOException, NoSuchAlgorithmException, NoSuchPaddingException,
  		InvalidKeySpecException, InvalidKeyException, InvalidAlgorithmParameterException
  	{
  		byte[] encryptedPrivateKeyBytes = null;
  		boolean pemFormat = PrivateKeyReader.isPemFormat(encryptedPrivateKeyFile);
  		if (pemFormat)
  		{
  			KeyPair keyPair = getKeyPair(encryptedPrivateKeyFile, password);
  			if (keyPair != null)
  			{
  				return keyPair.getPrivate();
  			}
  		}
  		else
  		{
  			encryptedPrivateKeyBytes = Files.readAllBytes(encryptedPrivateKeyFile.toPath());
  			return readPasswordProtectedPrivateKey(encryptedPrivateKeyBytes, password, algorithm);
  		}
  		return null;
  	}