Private and public key paths are injected into grants now

This commit is contained in:
Alex Bilbie 2016-01-17 14:21:35 +00:00
parent 5f22ead287
commit f6664c6917
2 changed files with 39 additions and 0 deletions

View File

@ -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}
*/

View File

@ -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);
}