/**
  * Ensure we have an authncontext (how secure auth we require for each environment)
  *
  * e.g. urn:nzl:govt:ict:stds:authn:deployment:GLS:SAML:2.0:ac:classes:LowStrength
  */
 private function validateAuthNContext()
 {
     foreach ($this->service->getAllowedRealMeEnvironments() as $env) {
         $context = $this->service->getAuthnContextForEnvironment($env);
         if (true === is_null($context)) {
             $this->errors[] = _t('RealMeSetupTask.ERR_CONFIG_NO_AUTHNCONTEXT', '', '', array('env' => $env));
         }
         if (false === in_array($context, $this->service->getAllowedAuthNContextList())) {
             $this->errors[] = _t('RealMeSetupTask.ERR_CONFIG_INVALID_AUTHNCONTEXT', '', '', array('env' => $env));
         }
     }
 }