示例#1
0
 /**
  * Store assiciation in internal chace and external storage
  *
  * @param string $url OpenID server url
  * @param string $handle association handle
  * @param string $macFunc HMAC function (sha1 or sha256)
  * @param string $secret shared secret
  * @param integer $expires expiration UNIX time
  * @return void
  */
 protected function _addAssociation($url, $handle, $macFunc, $secret, $expires)
 {
     $this->_cache[$url] = array($handle, $macFunc, $secret, $expires);
     return $this->_storage->addAssociation(
         $url,
         $handle,
         $macFunc,
         $secret,
         $expires);
 }