1 | <?php |
||
8 | class IntrospectionResponse extends AbstractResponseType |
||
9 | { |
||
10 | /** |
||
11 | * @var bool |
||
12 | */ |
||
13 | protected $valid = false; |
||
14 | |||
15 | /** |
||
16 | * @var ServerRequestInterface |
||
17 | */ |
||
18 | protected $request; |
||
19 | |||
20 | /** |
||
21 | * @param bool $bool |
||
22 | */ |
||
23 | 3 | public function setValidity(bool $bool) |
|
27 | |||
28 | /** |
||
29 | * @param ServerRequestInterface $request |
||
30 | */ |
||
31 | 1 | public function setRequest(ServerRequestInterface $request) |
|
35 | |||
36 | /** |
||
37 | * @return array |
||
38 | */ |
||
39 | 1 | protected function validIntrospectionResponse() |
|
47 | |||
48 | /** |
||
49 | * @return array |
||
50 | */ |
||
51 | 2 | protected function invalidIntrospectionResponse() |
|
57 | |||
58 | /** |
||
59 | * Extract the introspection response |
||
60 | * |
||
61 | * @return array |
||
62 | */ |
||
63 | 5 | public function getIntrospectionResponseParams() |
|
69 | |||
70 | /** |
||
71 | * @return bool |
||
72 | */ |
||
73 | 5 | protected function isValid() |
|
77 | |||
78 | /** |
||
79 | * @param ResponseInterface $response |
||
80 | * |
||
81 | * @return ResponseInterface |
||
82 | */ |
||
83 | 3 | public function generateHttpResponse(ResponseInterface $response) |
|
97 | |||
98 | /** |
||
99 | * Add custom fields to your Introspection response here, then set your introspection |
||
100 | * reponse in AuthorizationServer::setIntrospectionResponseType() to pull in your version of |
||
101 | * this class rather than the default. |
||
102 | * |
||
103 | * @return array |
||
104 | */ |
||
105 | 2 | protected function getExtraParams() |
|
109 | } |
||
110 |