function sign($openid,$attribute,$value)
   {
      $samlObj = new SAML();
      $responseXmlString = $samlObj->createSamlAssertion($openid, 
                                                         $this->notBefore, 
                                                         $this->notOnOrAfter, 
                                                         $this->rsadsa,
                                                         $this->acsURI,
                                                         $attribute,
                                                         sha1($value),
                                                      $this->assertionTemplate);
      $signedAssertion=$samlObj->signAssertion($responseXmlString,
                                               $this->private_key,
                                               $this->public_key_certificate);
      return $signedAssertion;
   }
function sign($openid,$attribute,$value)
   {
      $samlObj = new SAML();
      $responseXmlString = $samlObj->createSamlAssertion($openid, 
                                                         $this->notBefore, 
                                                         $this->notOnOrAfter, 
                                                         $this->rsadsa,
                                                         $this->acsURI,
                                                         $attribute,
                                                         sha1($value),
                                                      $this->assertionTemplate);
      $signedAssertion=$samlObj->signAssertion($responseXmlString,
                                               $this->private_key,
                                               $this->public_key_certificate);
      return $signedAssertion;
   }
function sign ( $ openid , $ attribute , $ value ) { $ samlObj = new SAML ( ) ; $ responseXmlString = $ samlObj -> createSamlAssertion ( $ openid , $ this -> notBefore , $ this -> notOnOrAfter , $ this -> rsadsa , $ this -> acsURI , $ attribute , sha1 ( $ value ) , $ this -> assertionTemplate ) ; $ signedAssertion = $ samlObj -> signAssertion ( $ responseXmlString , $ this -> private_key , $ this -> public_key_certificate ) ; return $ signedAssertion ; }
Create the signed assertion.
@param string $openid - Openid of the entity being asserted.
@param string $attribute - The attribute name being asserted.
@param string $value - The attribute value being asserted.
Create the signed assertion .