diff --git a/src/Grant/AbstractGrant.php b/src/Grant/AbstractGrant.php index 934456e6..74af64b9 100644 --- a/src/Grant/AbstractGrant.php +++ b/src/Grant/AbstractGrant.php @@ -70,6 +70,16 @@ abstract class AbstractGrant implements GrantTypeInterface */ protected $scopeRepository; + /** + * @var string + */ + protected $pathToPrivateKey; + + /** + * @var string + */ + protected $pathToPublicKey; + /** * @param ClientRepositoryInterface $clientRepository */ @@ -94,6 +104,22 @@ abstract class AbstractGrant implements GrantTypeInterface $this->scopeRepository = $scopeRepository; } + /** + * @param string $pathToPrivateKey + */ + public function setPathToPrivateKey($pathToPrivateKey) + { + $this->pathToPrivateKey = $pathToPrivateKey; + } + + /** + * @param string $pathToPublicKey + */ + public function setPathToPublicKey($pathToPublicKey) + { + $this->pathToPublicKey = $pathToPublicKey; + } + /** * {@inheritdoc} */ diff --git a/src/Grant/GrantTypeInterface.php b/src/Grant/GrantTypeInterface.php index 4a474af5..5bc9bf08 100644 --- a/src/Grant/GrantTypeInterface.php +++ b/src/Grant/GrantTypeInterface.php @@ -95,4 +95,17 @@ interface GrantTypeInterface */ public function setScopeRepository(ScopeRepositoryInterface $scopeRepository); + /** + * Set the path to the private key + * + * @param string $pathToPrivateKey + */ + public function setPathToPrivateKey($pathToPrivateKey); + + /** + * Set the path to the public key + * + * @param string $pathToPublicKey + */ + public function setPathToPublicKey($pathToPublicKey); }