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; }
/** * @return \Acquia\Network\Signature */ public function getSignature() { $signature = new Signature('secretkey'); $signature->setRequestTime('1390764701'); return $signature; }