1 | <?php |
||
12 | class Introspector |
||
13 | { |
||
14 | /** |
||
15 | * @var AccessTokenRepositoryInterface |
||
16 | */ |
||
17 | private $accessTokenRepository; |
||
18 | |||
19 | /** |
||
20 | * @var CryptKey |
||
21 | */ |
||
22 | private $privateKey; |
||
23 | |||
24 | /** |
||
25 | * @var null|IntrospectionValidatorInterface |
||
26 | */ |
||
27 | private $introspectionValidator; |
||
28 | |||
29 | /** |
||
30 | * New Introspector instance. |
||
31 | * |
||
32 | * @param AccessTokenRepositoryInterface $accessTokenRepository |
||
33 | * @param CryptKey $privateKey |
||
34 | * @param IntrospectionValidatorInterface $introspectionValidator |
||
35 | */ |
||
36 | 4 | public function __construct( |
|
45 | |||
46 | /** |
||
47 | * Validate the introspection request. |
||
48 | * |
||
49 | * @param ServerRequestInterface $request |
||
50 | * |
||
51 | * @throws OAuthServerException |
||
52 | */ |
||
53 | 2 | public function validateIntrospectionRequest(ServerRequestInterface $request) |
|
59 | |||
60 | /** |
||
61 | * Return an introspection response. |
||
62 | * |
||
63 | * @param ServerRequestInterface $request |
||
64 | * @param IntrospectionResponse $responseType |
||
65 | * |
||
66 | * @return IntrospectionResponse |
||
67 | */ |
||
68 | 2 | public function respondToIntrospectionRequest( |
|
81 | |||
82 | /** |
||
83 | * Get the introspection validator, falling back to the bearer token validator if not set. |
||
84 | * |
||
85 | * @return IntrospectionValidatorInterface |
||
86 | */ |
||
87 | 2 | protected function getIntrospectionValidator() |
|
96 | } |
||
97 |