1 | <?php |
||
18 | class ResourceServer |
||
19 | { |
||
20 | /** |
||
21 | * @var AccessTokenRepositoryInterface |
||
22 | */ |
||
23 | private $accessTokenRepository; |
||
24 | |||
25 | /** |
||
26 | * @var CryptKey |
||
27 | */ |
||
28 | private $publicKey; |
||
29 | |||
30 | /** |
||
31 | * @var null|AuthorizationValidatorInterface |
||
32 | */ |
||
33 | private $authorizationValidator; |
||
34 | |||
35 | /** |
||
36 | * New server instance. |
||
37 | * |
||
38 | * @param AccessTokenRepositoryInterface $accessTokenRepository |
||
39 | * @param CryptKey|string $publicKey |
||
40 | * @param null|AuthorizationValidatorInterface $authorizationValidator |
||
41 | */ |
||
42 | public function __construct( |
||
56 | |||
57 | /** |
||
58 | * @return AuthorizationValidatorInterface |
||
59 | */ |
||
60 | protected function getAuthorizationValidator() |
||
72 | |||
73 | /** |
||
74 | * Determine the access token validity. |
||
75 | * |
||
76 | * @param ServerRequestInterface $request |
||
77 | * |
||
78 | * @throws OAuthServerException |
||
79 | * |
||
80 | * @return ServerRequestInterface |
||
81 | */ |
||
82 | public function validateAuthenticatedRequest(ServerRequestInterface $request) |
||
86 | } |
||
87 |