예제 #1
0
 protected function buildAuthenticator($params = array())
 {
     $signature = new Signature($this->networkKey);
     $signature->getNoncer()->setLength(self::NONCE_LENGTH);
     $authenticator = array('identifier' => $this->networkId, 'time' => $signature->getRequestTime(), 'hash' => $signature->generate($params), 'nonce' => $signature->getNonce());
     return $authenticator;
 }
예제 #2
0
 /**
  * @return \Acquia\Network\Signature
  */
 public function getSignature()
 {
     $signature = new Signature('secretkey');
     $signature->setRequestTime('1390764701');
     return $signature;
 }