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