/**
  * Validates the SimpleSaml Config directories and ensures this script can write to them. Note: it's important that
  * this script is run by the web user as this will be the user accessing the files, and writing to the log.
  *
  * @return array
  */
 private function validateSimpleSamlConfig()
 {
     if (true === is_null($this->service->getSimpleSamlConfigDir())) {
         $this->errors[] = _t('RealMeSetupTask.ERR_SIMPLE_SAML_CONFIG_DIR_MISSING');
     } elseif (false === $this->isWriteable($this->service->getSimpleSamlConfigDir())) {
         $this->errors[] = _t('RealMeSetupTask.ERR_SIMPLE_SAML_CONFIG_DIR_NOT_WRITEABLE', '', '', array('dir' => $this->service->getSimpleSamlConfigDir()));
     }
     if (true === is_null($this->service->getSimpleSamlBaseUrlPath())) {
         $this->errors[] = _t('RealMeSetupTask.ERR_BASE_DIR_MISSING');
     }
 }