code: private boolean doesHostMatch(String connectionObjHost, String remoteHost) {
          boolean match = false;
  
          if (remoteHost.equalsIgnoreCase(connectionObjHost))
              match = true;
  
          return match;
      }
docs: /*
  Method to check if the hostname's match. Will check for domains to match
  if the connectionObjHost parameter starts with "*."