code: public synchronized boolean validationEnabled() {
          // enable/disable hostname verification
          String validate = getGlobalProperty(Constants.SSLPROP_VALIDATION_ENABLED);
  
          if (validate != null && (validate.equalsIgnoreCase("true") || validate.equalsIgnoreCase("yes"))) {
              return true;
          }
  
          return false;
      }
docs: *
  This method installs a hostname verification checker that defaults to not
  check the hostname. If it does not install this hostname verification
  checker, then any URL connections must have a certificate that matches the
  host that sent it.
  
  @return boolean
  *