1 | <?php |
||
8 | class IntrospectionResponse extends AbstractResponseType |
||
9 | { |
||
10 | /** |
||
11 | * @var Token |
||
12 | */ |
||
13 | protected $token; |
||
14 | |||
15 | /** |
||
16 | * Set the token against the response |
||
17 | * |
||
18 | * @param Token $token |
||
19 | */ |
||
20 | public function setToken(Token $token) |
||
24 | |||
25 | private function hasToken() |
||
29 | |||
30 | /** |
||
31 | * @return array |
||
32 | */ |
||
33 | private function validTokenResponse() |
||
48 | |||
49 | /** |
||
50 | * @return array |
||
51 | */ |
||
52 | private function invalidTokenResponse() |
||
58 | |||
59 | /** |
||
60 | * Extract the introspection params from the token |
||
61 | * |
||
62 | * @return array |
||
63 | */ |
||
64 | public function getIntrospectionParams() |
||
70 | |||
71 | /** |
||
72 | * @param ResponseInterface $response |
||
73 | * |
||
74 | * @return ResponseInterface |
||
75 | */ |
||
76 | public function generateHttpResponse(ResponseInterface $response) |
||
90 | |||
91 | /** |
||
92 | * Add custom fields to your Introspection response here, then set your introspection |
||
93 | * reponse in AuthorizationServer::setIntrospectionResponseType() to pull in your version of |
||
94 | * this class rather than the default. |
||
95 | * |
||
96 | * @return array |
||
97 | */ |
||
98 | protected function getExtraParams() |
||
102 | } |
||
103 |