1 | <?php |
||
19 | abstract class AbstractResponseType implements ResponseTypeInterface |
||
20 | { |
||
21 | use CryptTrait; |
||
22 | |||
23 | /** |
||
24 | * @var AccessTokenEntityInterface |
||
25 | */ |
||
26 | protected $accessToken; |
||
27 | |||
28 | /** |
||
29 | * @var RefreshTokenEntityInterface |
||
30 | */ |
||
31 | protected $refreshToken; |
||
32 | |||
33 | /** |
||
34 | * @var CryptKey |
||
35 | */ |
||
36 | protected $privateKey; |
||
37 | |||
38 | /** |
||
39 | * {@inheritdoc} |
||
40 | */ |
||
41 | public function setAccessToken(AccessTokenEntityInterface $accessToken) |
||
45 | |||
46 | /** |
||
47 | * {@inheritdoc} |
||
48 | */ |
||
49 | public function setRefreshToken(RefreshTokenEntityInterface $refreshToken) |
||
53 | |||
54 | /** |
||
55 | * Set the private key |
||
56 | * |
||
57 | * @param \League\OAuth2\Server\CryptKey $key |
||
58 | */ |
||
59 | public function setPrivateKey(CryptKey $key) |
||
63 | |||
64 | } |
||
65 |