code: private boolean verifyIpAddress(String ipAddress, X509Certificate certificate) {
      List<String> altNames = getSubjectAltNames(certificate, ALT_IPA_NAME);
      for (int i = 0, size = altNames.size(); i < size; i++) {
        if (ipAddress.equalsIgnoreCase(altNames.get(i))) {
          return true;
        }
      }
      return false;
    }
docs: Returns true if {@code certificate} matches {@code ipAddress}.