/**
  * @param ProfileContext $context
  */
 protected function doExecute(ProfileContext $context)
 {
     $logoutRequest = MessageContextHelper::asLogoutRequest($context->getOutboundContext());
     $ssoSessionState = $context->getLogoutSsoSessionState();
     $nameId = new NameID();
     $nameId->setValue($ssoSessionState->getNameId());
     $nameId->setFormat($ssoSessionState->getNameIdFormat());
     $logoutRequest->setNameID($nameId);
 }
 /**
  * @expectedException \LightSaml\Error\LightSamlValidationException
  * @expectedExceptionMessage NameID '123456789012345' with Transient Format attribute MUST have a Value with at least 16 characters (the equivalent of 128 bits)
  */
 public function test_invalid_transient_format_short()
 {
     $nameId = new NameID();
     $nameId->setFormat(SamlConstants::NAME_ID_FORMAT_TRANSIENT)->setValue('123456789012345');
     $validator = new NameIdValidator();
     $validator->validateNameId($nameId);
 }