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 | * Set the validity of the response. |
||
22 | * |
||
23 | * @param bool $bool |
||
24 | */ |
||
25 | 3 | public function setValidity(bool $bool) |
|
29 | |||
30 | /** |
||
31 | * Set the request. |
||
32 | * |
||
33 | * @param ServerRequestInterface $request |
||
34 | */ |
||
35 | 1 | public function setRequest(ServerRequestInterface $request) |
|
39 | |||
40 | /** |
||
41 | * Return the valid introspection parameters. |
||
42 | * |
||
43 | * @return array |
||
44 | */ |
||
45 | 1 | protected function validIntrospectionResponse() |
|
53 | |||
54 | /** |
||
55 | * Return the invalid introspection parameters. |
||
56 | * |
||
57 | * @return array |
||
58 | */ |
||
59 | 2 | protected function invalidIntrospectionResponse() |
|
65 | |||
66 | /** |
||
67 | * Extract the introspection response. |
||
68 | * |
||
69 | * @return array |
||
70 | */ |
||
71 | 5 | public function getIntrospectionResponseParams() |
|
77 | |||
78 | /** |
||
79 | * Check if the response is valid. |
||
80 | * |
||
81 | * @return bool |
||
82 | */ |
||
83 | 5 | protected function isValid() |
|
87 | |||
88 | /** |
||
89 | * Generate a HTTP response. |
||
90 | * |
||
91 | * @param ResponseInterface $response |
||
92 | * |
||
93 | * @return ResponseInterface |
||
94 | */ |
||
95 | 3 | public function generateHttpResponse(ResponseInterface $response) |
|
109 | |||
110 | /** |
||
111 | * Add custom fields to your Introspection response here, then set your introspection |
||
112 | * reponse in AuthorizationServer::setIntrospectionResponseType() to pull in your version of |
||
113 | * this class rather than the default. |
||
114 | * |
||
115 | * @return array |
||
116 | */ |
||
117 | 2 | protected function getExtraParams() |
|
121 | } |
||
122 |