Debian Codegraph @

lib/3rdParty/composer/facile-it/php-openid-client/src/Issuer/Metadata/IssuerMetadataInterface.php

raw symbols SCIP
1 <?php
2
3 declare(strict_types=1);
4
5 namespace Facile\OpenIDClient\Issuer\Metadata;
6
7 use Facile\JoseVerifier\TokenVerifierInterface;
8 use JsonSerializable;
9 use Override;
10
11 /**
12 * @psalm-api
13 *
14 * @psalm-import-type IssuerRemoteMetadataType from TokenVerifierInterface
15 * @psalm-import-type OpenIdResponseMode from TokenVerifierInterface
16 * @psalm-import-type OpenIdGrantType from TokenVerifierInterface
17 * @psalm-import-type OpenIdClaimType from TokenVerifierInterface
18 * @psalm-import-type OpenIdSubjectType from TokenVerifierInterface
19 */
20 interface IssuerMetadataInterface extends JsonSerializable
21 {
22 /**
23 * @return mixed
24 */
25 public function get(string $name);
26
27 public function has(string $name): bool;
28
29 /**
30 * @psalm-return non-empty-string
31 */
32 public function getIssuer(): string;
33
34 /**
35 * @psalm-return non-empty-string
36 */
37 public function getAuthorizationEndpoint(): string;
38
39 /**
40 * @psalm-return non-empty-string|null
41 */
42 public function getTokenEndpoint(): ?string;
43
44 /**
45 * @psalm-return non-empty-string|null
46 */
47 public function getUserinfoEndpoint(): ?string;
48
49 /**
50 * @psalm-return non-empty-string|null
51 */
52 public function getRegistrationEndpoint(): ?string;
53
54 /**
55 * @psalm-return non-empty-string
56 */
57 public function getJwksUri(): string;
58
59 /**
60 * @return string[]|null
61 *
62 * @psalm-return list<non-empty-string>|null
63 */
64 public function getScopesSupported(): ?array;
65
66 /**
67 * @return string[]
68 *
69 * @psalm-return list<non-empty-string>
70 */
71 public function getResponseTypesSupported(): array;
72
73 /**
74 * @return string[]
75 *
76 * @psalm-return list<OpenIdResponseMode>
77 */
78 public function getResponseModesSupported(): array;
79
80 /**
81 * @return string[]
82 *
83 * @psalm-return list<OpenIdGrantType>
84 */
85 public function getGrantTypesSupported(): array;
86
87 /**
88 * @return string[]|null
89 *
90 * @psalm-return list<non-empty-string>|null
91 */
92 public function getAcrValuesSupported(): ?array;
93
94 /**
95 * @return string[]
96 *
97 * @psalm-return list<OpenIdSubjectType>
98 */
99 public function getSubjectTypesSupported(): array;
100
101 /**
102 * @return string[]|null
103 *
104 * @psalm-return list<non-empty-string>|null
105 */
106 public function getDisplayValuesSupported(): ?array;
107
108 /**
109 * @return string[]
110 *
111 * @psalm-return list<OpenIdClaimType>
112 */
113 public function getClaimTypesSupported(): array;
114
115 /**
116 * @return string[]|null
117 *
118 * @psalm-return list<non-empty-string>|null
119 */
120 public function getClaimsSupported(): ?array;
121
122 /**
123 * @psalm-return non-empty-string|null
124 */
125 public function getServiceDocumentation(): ?string;
126
127 /**
128 * @return string[]|null
129 *
130 * @psalm-return list<non-empty-string>|null
131 */
132 public function getClaimsLocalesSupported(): ?array;
133
134 /**
135 * @return string[]|null
136 *
137 * @psalm-return list<non-empty-string>|null
138 */
139 public function getUiLocalesSupported(): ?array;
140
141 public function isClaimsParameterSupported(): bool;
142
143 public function isRequestParameterSupported(): bool;
144
145 public function isRequestUriParameterSupported(): bool;
146
147 public function isRequireRequestUriRegistration(): bool;
148
149 /**
150 * @psalm-return non-empty-string|null
151 */
152 public function getOpPolicyUri(): ?string;
153
154 /**
155 * @psalm-return non-empty-string|null
156 */
157 public function getOpTosUri(): ?string;
158
159 /**
160 * @return string[]|null
161 *
162 * @psalm-return list<non-empty-string>|null
163 */
164 public function getCodeChallengeMethodsSupported(): ?array;
165
166 /**
167 * @return string[]
168 *
169 * @psalm-return list<non-empty-string>
170 */
171 public function getTokenEndpointAuthMethodsSupported(): array;
172
173 /**
174 * @return string[]
175 *
176 * @psalm-return list<non-empty-string>
177 */
178 public function getTokenEndpointAuthSigningAlgValuesSupported(): array;
179
180 /**
181 * @return string[]
182 *
183 * @psalm-return list<non-empty-string>
184 */
185 public function getIdTokenSigningAlgValuesSupported(): array;
186
187 /**
188 * @return string[]
189 *
190 * @psalm-return list<non-empty-string>
191 */
192 public function getIdTokenEncryptionAlgValuesSupported(): array;
193
194 /**
195 * @return string[]
196 *
197 * @psalm-return list<non-empty-string>
198 */
199 public function getIdTokenEncryptionEncValuesSupported(): array;
200
201 /**
202 * @return string[]
203 *
204 * @psalm-return list<non-empty-string>
205 */
206 public function getUserinfoSigningAlgValuesSupported(): array;
207
208 /**
209 * @return string[]
210 *
211 * @psalm-return list<non-empty-string>
212 */
213 public function getUserinfoEncryptionAlgValuesSupported(): array;
214
215 /**
216 * @return string[]
217 *
218 * @psalm-return list<non-empty-string>
219 */
220 public function getUserinfoEncryptionEncValuesSupported(): array;
221
222 /**
223 * @return string[]
224 *
225 * @psalm-return list<non-empty-string>
226 */
227 public function getAuthorizationSigningAlgValuesSupported(): array;
228
229 /**
230 * @return string[]
231 *
232 * @psalm-return list<non-empty-string>
233 */
234 public function getAuthorizationEncryptionAlgValuesSupported(): array;
235
236 /**
237 * @return string[]
238 *
239 * @psalm-return list<non-empty-string>
240 */
241 public function getAuthorizationEncryptionEncValuesSupported(): array;
242
243 /**
244 * @psalm-return non-empty-string|null
245 */
246 public function getIntrospectionEndpoint(): ?string;
247
248 /**
249 * @return string[]
250 *
251 * @psalm-return list<non-empty-string>
252 */
253 public function getIntrospectionEndpointAuthMethodsSupported(): array;
254
255 /**
256 * @return string[]
257 *
258 * @psalm-return list<non-empty-string>
259 */
260 public function getIntrospectionEndpointAuthSigningAlgValuesSupported(): array;
261
262 /**
263 * @return string[]
264 *
265 * @psalm-return list<non-empty-string>
266 */
267 public function getIntrospectionSigningAlgValuesSupported(): array;
268
269 /**
270 * @return string[]
271 *
272 * @psalm-return list<non-empty-string>
273 */
274 public function getIntrospectionEncryptionAlgValuesSupported(): array;
275
276 /**
277 * @return string[]
278 *
279 * @psalm-return list<non-empty-string>
280 */
281 public function getIntrospectionEncryptionEncValuesSupported(): array;
282
283 /**
284 * @return string[]
285 *
286 * @psalm-return list<non-empty-string>
287 */
288 public function getRequestObjectSigningAlgValuesSupported(): array;
289
290 /**
291 * @return string[]
292 *
293 * @psalm-return list<non-empty-string>
294 */
295 public function getRequestObjectEncryptionAlgValuesSupported(): array;
296
297 /**
298 * @return string[]
299 *
300 * @psalm-return list<non-empty-string>
301 */
302 public function getRequestObjectEncryptionEncValuesSupported(): array;
303
304 /**
305 * @psalm-return non-empty-string|null
306 */
307 public function getRevocationEndpoint(): ?string;
308
309 /**
310 * @return string[]
311 *
312 * @psalm-return list<non-empty-string>
313 */
314 public function getRevocationEndpointAuthMethodsSupported(): array;
315
316 /**
317 * @return string[]
318 *
319 * @psalm-return list<non-empty-string>
320 */
321 public function getRevocationEndpointAuthSigningAlgValuesSupported(): array;
322
323 /**
324 * @psalm-return non-empty-string|null
325 */
326 public function getCheckSessionIframe(): ?string;
327
328 /**
329 * @psalm-return non-empty-string|null
330 */
331 public function getEndSessionIframe(): ?string;
332
333 public function isFrontchannelLogoutSupported(): bool;
334
335 public function isFrontchannelLogoutSessionSupported(): bool;
336
337 public function isBackchannelLogoutSupported(): bool;
338
339 public function isBackchannelLogoutSessionSupported(): bool;
340
341 public function isTlsClientCertificateBoundAccessTokens(): bool;
342
343 /**
344 * @return array<string, string>
345 */
346 public function getMtlsEndpointAliases(): array;
347
348 /**
349 * @return array<string, mixed>
350 *
351 * @psalm-return IssuerRemoteMetadataType
352 */
353 #[Override]
354 public function jsonSerialize(): array;
355
356 /**
357 * @return array<string, mixed>
358 *
359 * @psalm-return IssuerRemoteMetadataType
360 */
361 public function toArray(): array;
362 }