Skip to content
This repository has been archived by the owner on Dec 30, 2020. It is now read-only.

Updated using jose-interface 1.0.0 #19

Merged
merged 3 commits into from
Feb 9, 2015
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Bugs fixed
  • Loading branch information
Spomky committed Feb 9, 2015
commit b074bd2ecedfa1cbe864bcf2fef66b1ae0de28b2
21 changes: 19 additions & 2 deletions tests/Stub/Encrypter.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

namespace SpomkyLabs\Jose\Tests\Stub;

use Jose\JWKManagerInterface;
use Jose\JWAManagerInterface;
use Jose\JWTManagerInterface;
use Jose\JWKManagerInterface;
use Jose\JWKSetManagerInterface;
use Jose\Compression\CompressionManagerInterface;
use SpomkyLabs\Jose\Encrypter as Base;

Expand All @@ -13,9 +14,10 @@
*/
class Encrypter extends Base
{
protected $jwk_manager;
protected $jwa_manager;
protected $jwt_manager;
protected $jwk_manager;
protected $jwkset_manager;
protected $compression_manager;

/**
Expand Down Expand Up @@ -63,6 +65,21 @@ public function setJWKManager(JWKManagerInterface $jwk_manager)
return $this;
}

/**
* {@inheritdoc}
*/
protected function getJWKSetManager()
{
return $this->jwkset_manager;
}

public function setJWKSetManager(JWKSetManagerInterface $jwkset_manager)
{
$this->jwkset_manager = $jwkset_manager;

return $this;
}

/**
* {@inheritdoc}
*/
Expand Down
18 changes: 17 additions & 1 deletion tests/Stub/Signer.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@
class Signer extends Base
{
protected $jwt_manager;
protected $jwk_manager;
protected $jwa_manager;
protected $jwk_manager;
protected $jwkset_manager;

/**
* {@inheritdoc}
Expand Down Expand Up @@ -60,4 +61,19 @@ public function setJWKManager(JWKManagerInterface $jwk_manager)

return $this;
}

/**
* {@inheritdoc}
*/
protected function getJWKSetManager()
{
return $this->jwkset_manager;
}

public function setJWKSetManager(JWKSetManagerInterface $jwkset_manager)
{
$this->jwkset_manager = $jwkset_manager;

return $this;
}
}