示例#1
0
 protected function createAuthentication()
 {
     return AuthenticationFactory::create("HMAC_SHA256_V1", $this->secretKey());
 }
示例#2
0
 private function createAuthentication()
 {
     return AuthenticationFactory::create(HmacSha256V1::NAME, $this->secretKey());
 }
示例#3
0
 /**
  * @inheritdoc
  */
 public function getAuthentication()
 {
     return AuthenticationFactory::create(self::DEFAULT_AUTHENTICATION, $this->getKey());
 }
示例#4
0
 /**
  * @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");
 }