1 | <?php |
||
9 | class IntrospectionResponse extends AbstractResponseType |
||
10 | { |
||
11 | /** |
||
12 | * @var boolean |
||
13 | */ |
||
14 | protected $valid = false; |
||
15 | |||
16 | /** |
||
17 | * @var ServerRequestInterface |
||
18 | */ |
||
19 | protected $request; |
||
20 | |||
21 | /** |
||
22 | * @param boolean $bool |
||
23 | * @return void |
||
24 | */ |
||
25 | 3 | public function setValidity(bool $bool) |
|
29 | |||
30 | /** |
||
31 | * @param ServerRequestInterface $request |
||
32 | * @return void |
||
33 | */ |
||
34 | 1 | public function setRequest(ServerRequestInterface $request) |
|
38 | |||
39 | /** |
||
40 | * @return array |
||
41 | */ |
||
42 | 1 | protected function validIntrospectionResponse() |
|
50 | |||
51 | /** |
||
52 | * @return array |
||
53 | */ |
||
54 | 2 | protected function invalidIntrospectionResponse() |
|
60 | |||
61 | /** |
||
62 | * Extract the introspection response |
||
63 | * |
||
64 | * @return array |
||
65 | */ |
||
66 | 5 | public function getIntrospectionResponseParams() |
|
72 | |||
73 | /** |
||
74 | * @return boolean |
||
75 | */ |
||
76 | 5 | protected function isValid() |
|
80 | |||
81 | /** |
||
82 | * @param ResponseInterface $response |
||
83 | * |
||
84 | * @return ResponseInterface |
||
85 | */ |
||
86 | 3 | public function generateHttpResponse(ResponseInterface $response) |
|
100 | |||
101 | /** |
||
102 | * Add custom fields to your Introspection response here, then set your introspection |
||
103 | * reponse in AuthorizationServer::setIntrospectionResponseType() to pull in your version of |
||
104 | * this class rather than the default. |
||
105 | * |
||
106 | * @return array |
||
107 | */ |
||
108 | 2 | protected function getExtraParams() |
|
112 | } |
||
113 |