protected function createAuthentication() { return AuthenticationFactory::create("HMAC_SHA256_V1", $this->secretKey()); }
private function createAuthentication() { return AuthenticationFactory::create(HmacSha256V1::NAME, $this->secretKey()); }
/** * @inheritdoc */ public function getAuthentication() { return AuthenticationFactory::create(self::DEFAULT_AUTHENTICATION, $this->getKey()); }
/** * @inheritdoc */ public function getAuthentication() { $version = $this->getValue(self::VERSION); return AuthenticationFactory::create($version, $this->getKey()); }
/** * @expectedException \UnexpectedValueException */ public function testCreateAuthenticationFactoryShouldThrowException() { AuthenticationFactory::create("Authentication_Factory", "my_key"); }