1
|
|
|
<?php |
2
|
|
|
/** |
3
|
|
|
* Created by PhpStorm. |
4
|
|
|
* User: Alexandre |
5
|
|
|
* Date: 15/03/2018 |
6
|
|
|
* Time: 22:56 |
7
|
|
|
*/ |
8
|
|
|
|
9
|
|
|
namespace OAuth2\Extensions\OpenID\Roles\Clients; |
10
|
|
|
|
11
|
|
|
|
12
|
|
|
class ClientMetadata extends \OAuth2\Roles\Clients\ClientMetadata implements ClientMetadataInterface |
13
|
|
|
{ |
14
|
|
|
/** |
15
|
|
|
* @var string|null |
16
|
|
|
*/ |
17
|
|
|
protected $applicationType; |
18
|
|
|
|
19
|
|
|
/** |
20
|
|
|
* @var string|null |
21
|
|
|
*/ |
22
|
|
|
protected $sectorIdentifierUri; |
23
|
|
|
|
24
|
|
|
/** |
25
|
|
|
* @var string|null |
26
|
|
|
*/ |
27
|
|
|
protected $subjectType; |
28
|
|
|
|
29
|
|
|
/** |
30
|
|
|
* @var string|null |
31
|
|
|
*/ |
32
|
|
|
protected $idTokenSignedResponseAlg; |
33
|
|
|
|
34
|
|
|
/** |
35
|
|
|
* @var string|null |
36
|
|
|
*/ |
37
|
|
|
protected $idTokenEncryptedResponseAlg; |
38
|
|
|
|
39
|
|
|
/** |
40
|
|
|
* @var string|null |
41
|
|
|
*/ |
42
|
|
|
protected $idTokenEncryptedResponseEnc; |
43
|
|
|
|
44
|
|
|
/** |
45
|
|
|
* @var string|null |
46
|
|
|
*/ |
47
|
|
|
protected $userinfoSignedResponseAlg; |
48
|
|
|
|
49
|
|
|
/** |
50
|
|
|
* @var string|null |
51
|
|
|
*/ |
52
|
|
|
protected $userinfoEncryptedResponseAlg; |
53
|
|
|
|
54
|
|
|
/** |
55
|
|
|
* @var string|null |
56
|
|
|
*/ |
57
|
|
|
protected $userinfoEncryptedResponseEnc; |
58
|
|
|
|
59
|
|
|
/** |
60
|
|
|
* @var string|null |
61
|
|
|
*/ |
62
|
|
|
protected $requestObjectSigningAlg; |
63
|
|
|
|
64
|
|
|
/** |
65
|
|
|
* @var string|null |
66
|
|
|
*/ |
67
|
|
|
protected $requestObjectEncryptionAlg; |
68
|
|
|
|
69
|
|
|
/** |
70
|
|
|
* @var string|null |
71
|
|
|
*/ |
72
|
|
|
protected $requestObjectEncryptionEnc; |
73
|
|
|
|
74
|
|
|
/** |
75
|
|
|
* @var string|null |
76
|
|
|
*/ |
77
|
|
|
protected $tokenEndpointAuthSigningAlg; |
78
|
|
|
|
79
|
|
|
/** |
80
|
|
|
* @var int|null |
81
|
|
|
*/ |
82
|
|
|
protected $defaultMaxAge; |
83
|
|
|
|
84
|
|
|
/** |
85
|
|
|
* @var bool|null |
86
|
|
|
*/ |
87
|
|
|
protected $requireAuthTime; |
88
|
|
|
|
89
|
|
|
/** |
90
|
|
|
* @var string[]|null |
91
|
|
|
*/ |
92
|
|
|
protected $defaultAcrValues; |
93
|
|
|
|
94
|
|
|
/** |
95
|
|
|
* @var string|null |
96
|
|
|
*/ |
97
|
|
|
protected $initiateLoginUri; |
98
|
|
|
|
99
|
|
|
/** |
100
|
|
|
* @var string[]|null |
101
|
|
|
*/ |
102
|
|
|
protected $requestUris; |
103
|
|
|
|
104
|
|
|
/** |
105
|
|
|
* @return null|string |
106
|
|
|
*/ |
107
|
|
|
public function getApplicationType(): ?string |
108
|
|
|
{ |
109
|
|
|
return $this->applicationType; |
110
|
|
|
} |
111
|
|
|
|
112
|
|
|
/** |
113
|
|
|
* @param null|string $applicationType |
114
|
|
|
*/ |
115
|
|
|
public function setApplicationType(?string $applicationType): void |
116
|
|
|
{ |
117
|
|
|
$this->applicationType = $applicationType; |
118
|
|
|
} |
119
|
|
|
|
120
|
|
|
/** |
121
|
|
|
* @return null|string |
122
|
|
|
*/ |
123
|
|
|
public function getSectorIdentifierUri(): ?string |
124
|
|
|
{ |
125
|
|
|
return $this->sectorIdentifierUri; |
126
|
|
|
} |
127
|
|
|
|
128
|
|
|
/** |
129
|
|
|
* @param null|string $sectorIdentifierUri |
130
|
|
|
*/ |
131
|
|
|
public function setSectorIdentifierUri(?string $sectorIdentifierUri): void |
132
|
|
|
{ |
133
|
|
|
$this->sectorIdentifierUri = $sectorIdentifierUri; |
134
|
|
|
} |
135
|
|
|
|
136
|
|
|
/** |
137
|
|
|
* @return null|string |
138
|
|
|
*/ |
139
|
|
|
public function getSubjectType(): ?string |
140
|
|
|
{ |
141
|
|
|
return $this->subjectType; |
142
|
|
|
} |
143
|
|
|
|
144
|
|
|
/** |
145
|
|
|
* @param null|string $subjectType |
146
|
|
|
*/ |
147
|
|
|
public function setSubjectType(?string $subjectType): void |
148
|
|
|
{ |
149
|
|
|
$this->subjectType = $subjectType; |
150
|
|
|
} |
151
|
|
|
|
152
|
|
|
/** |
153
|
|
|
* @return null|string |
154
|
|
|
*/ |
155
|
|
|
public function getIdTokenSignedResponseAlg(): ?string |
156
|
|
|
{ |
157
|
|
|
return $this->idTokenSignedResponseAlg; |
158
|
|
|
} |
159
|
|
|
|
160
|
|
|
/** |
161
|
|
|
* @param null|string $idTokenSignedResponseAlg |
162
|
|
|
*/ |
163
|
|
|
public function setIdTokenSignedResponseAlg(?string $idTokenSignedResponseAlg): void |
164
|
|
|
{ |
165
|
|
|
$this->idTokenSignedResponseAlg = $idTokenSignedResponseAlg; |
166
|
|
|
} |
167
|
|
|
|
168
|
|
|
/** |
169
|
|
|
* @return null|string |
170
|
|
|
*/ |
171
|
|
|
public function getIdTokenEncryptedResponseAlg(): ?string |
172
|
|
|
{ |
173
|
|
|
return $this->idTokenEncryptedResponseAlg; |
174
|
|
|
} |
175
|
|
|
|
176
|
|
|
/** |
177
|
|
|
* @param null|string $idTokenEncryptedResponseAlg |
178
|
|
|
*/ |
179
|
|
|
public function setIdTokenEncryptedResponseAlg(?string $idTokenEncryptedResponseAlg): void |
180
|
|
|
{ |
181
|
|
|
$this->idTokenEncryptedResponseAlg = $idTokenEncryptedResponseAlg; |
182
|
|
|
} |
183
|
|
|
|
184
|
|
|
/** |
185
|
|
|
* @return null|string |
186
|
|
|
*/ |
187
|
|
|
public function getIdTokenEncryptedResponseEnc(): ?string |
188
|
|
|
{ |
189
|
|
|
return $this->idTokenEncryptedResponseEnc; |
190
|
|
|
} |
191
|
|
|
|
192
|
|
|
/** |
193
|
|
|
* @param null|string $idTokenEncryptedResponseEnc |
194
|
|
|
*/ |
195
|
|
|
public function setIdTokenEncryptedResponseEnc(?string $idTokenEncryptedResponseEnc): void |
196
|
|
|
{ |
197
|
|
|
$this->idTokenEncryptedResponseEnc = $idTokenEncryptedResponseEnc; |
198
|
|
|
} |
199
|
|
|
|
200
|
|
|
/** |
201
|
|
|
* @return null|string |
202
|
|
|
*/ |
203
|
|
|
public function getUserinfoSignedResponseAlg(): ?string |
204
|
|
|
{ |
205
|
|
|
return $this->userinfoSignedResponseAlg; |
206
|
|
|
} |
207
|
|
|
|
208
|
|
|
/** |
209
|
|
|
* @param null|string $userinfoSignedResponseAlg |
210
|
|
|
*/ |
211
|
|
|
public function setUserinfoSignedResponseAlg(?string $userinfoSignedResponseAlg): void |
212
|
|
|
{ |
213
|
|
|
$this->userinfoSignedResponseAlg = $userinfoSignedResponseAlg; |
214
|
|
|
} |
215
|
|
|
|
216
|
|
|
/** |
217
|
|
|
* @return null|string |
218
|
|
|
*/ |
219
|
|
|
public function getUserinfoEncryptedResponseAlg(): ?string |
220
|
|
|
{ |
221
|
|
|
return $this->userinfoEncryptedResponseAlg; |
222
|
|
|
} |
223
|
|
|
|
224
|
|
|
/** |
225
|
|
|
* @param null|string $userinfoEncryptedResponseAlg |
226
|
|
|
*/ |
227
|
|
|
public function setUserinfoEncryptedResponseAlg(?string $userinfoEncryptedResponseAlg): void |
228
|
|
|
{ |
229
|
|
|
$this->userinfoEncryptedResponseAlg = $userinfoEncryptedResponseAlg; |
230
|
|
|
} |
231
|
|
|
|
232
|
|
|
/** |
233
|
|
|
* @return null|string |
234
|
|
|
*/ |
235
|
|
|
public function getUserinfoEncryptedResponseEnc(): ?string |
236
|
|
|
{ |
237
|
|
|
return $this->userinfoEncryptedResponseEnc; |
238
|
|
|
} |
239
|
|
|
|
240
|
|
|
/** |
241
|
|
|
* @param null|string $userinfoEncryptedResponseEnc |
242
|
|
|
*/ |
243
|
|
|
public function setUserinfoEncryptedResponseEnc(?string $userinfoEncryptedResponseEnc): void |
244
|
|
|
{ |
245
|
|
|
$this->userinfoEncryptedResponseEnc = $userinfoEncryptedResponseEnc; |
246
|
|
|
} |
247
|
|
|
|
248
|
|
|
/** |
249
|
|
|
* @return null|string |
250
|
|
|
*/ |
251
|
|
|
public function getRequestObjectSigningAlg(): ?string |
252
|
|
|
{ |
253
|
|
|
return $this->requestObjectSigningAlg; |
254
|
|
|
} |
255
|
|
|
|
256
|
|
|
/** |
257
|
|
|
* @param null|string $requestObjectSigningAlg |
258
|
|
|
*/ |
259
|
|
|
public function setRequestObjectSigningAlg(?string $requestObjectSigningAlg): void |
260
|
|
|
{ |
261
|
|
|
$this->requestObjectSigningAlg = $requestObjectSigningAlg; |
262
|
|
|
} |
263
|
|
|
|
264
|
|
|
/** |
265
|
|
|
* @return null|string |
266
|
|
|
*/ |
267
|
|
|
public function getRequestObjectEncryptionAlg(): ?string |
268
|
|
|
{ |
269
|
|
|
return $this->requestObjectEncryptionAlg; |
270
|
|
|
} |
271
|
|
|
|
272
|
|
|
/** |
273
|
|
|
* @param null|string $requestObjectEncryptionAlg |
274
|
|
|
*/ |
275
|
|
|
public function setRequestObjectEncryptionAlg(?string $requestObjectEncryptionAlg): void |
276
|
|
|
{ |
277
|
|
|
$this->requestObjectEncryptionAlg = $requestObjectEncryptionAlg; |
278
|
|
|
} |
279
|
|
|
|
280
|
|
|
/** |
281
|
|
|
* @return null|string |
282
|
|
|
*/ |
283
|
|
|
public function getRequestObjectEncryptionEnc(): ?string |
284
|
|
|
{ |
285
|
|
|
return $this->requestObjectEncryptionEnc; |
286
|
|
|
} |
287
|
|
|
|
288
|
|
|
/** |
289
|
|
|
* @param null|string $requestObjectEncryptionEnc |
290
|
|
|
*/ |
291
|
|
|
public function setRequestObjectEncryptionEnc(?string $requestObjectEncryptionEnc): void |
292
|
|
|
{ |
293
|
|
|
$this->requestObjectEncryptionEnc = $requestObjectEncryptionEnc; |
294
|
|
|
} |
295
|
|
|
|
296
|
|
|
/** |
297
|
|
|
* @return null|string |
298
|
|
|
*/ |
299
|
|
|
public function getTokenEndpointAuthSigningAlg(): ?string |
300
|
|
|
{ |
301
|
|
|
return $this->tokenEndpointAuthSigningAlg; |
302
|
|
|
} |
303
|
|
|
|
304
|
|
|
/** |
305
|
|
|
* @param null|string $tokenEndpointAuthSigningAlg |
306
|
|
|
*/ |
307
|
|
|
public function setTokenEndpointAuthSigningAlg(?string $tokenEndpointAuthSigningAlg): void |
308
|
|
|
{ |
309
|
|
|
$this->tokenEndpointAuthSigningAlg = $tokenEndpointAuthSigningAlg; |
310
|
|
|
} |
311
|
|
|
|
312
|
|
|
/** |
313
|
|
|
* @return int|null |
314
|
|
|
*/ |
315
|
|
|
public function getDefaultMaxAge(): ?int |
316
|
|
|
{ |
317
|
|
|
return $this->defaultMaxAge; |
318
|
|
|
} |
319
|
|
|
|
320
|
|
|
/** |
321
|
|
|
* @param int|null $defaultMaxAge |
322
|
|
|
*/ |
323
|
|
|
public function setDefaultMaxAge(?int $defaultMaxAge): void |
324
|
|
|
{ |
325
|
|
|
$this->defaultMaxAge = $defaultMaxAge; |
326
|
|
|
} |
327
|
|
|
|
328
|
|
|
/** |
329
|
|
|
* @return bool|null |
330
|
|
|
*/ |
331
|
|
|
public function getRequireAuthTime(): ?bool |
332
|
|
|
{ |
333
|
|
|
return $this->requireAuthTime; |
334
|
|
|
} |
335
|
|
|
|
336
|
|
|
/** |
337
|
|
|
* @param bool|null $requireAuthTime |
338
|
|
|
*/ |
339
|
|
|
public function setRequireAuthTime(?bool $requireAuthTime): void |
340
|
|
|
{ |
341
|
|
|
$this->requireAuthTime = $requireAuthTime; |
342
|
|
|
} |
343
|
|
|
|
344
|
|
|
/** |
345
|
|
|
* @return null|string[] |
346
|
|
|
*/ |
347
|
|
|
public function getDefaultAcrValues(): ?array |
348
|
|
|
{ |
349
|
|
|
return $this->defaultAcrValues; |
350
|
|
|
} |
351
|
|
|
|
352
|
|
|
/** |
353
|
|
|
* @param null|string[] $defaultAcrValues |
354
|
|
|
*/ |
355
|
|
|
public function setDefaultAcrValues(?array $defaultAcrValues): void |
356
|
|
|
{ |
357
|
|
|
$this->defaultAcrValues = $defaultAcrValues; |
358
|
|
|
} |
359
|
|
|
|
360
|
|
|
/** |
361
|
|
|
* @return null|string |
362
|
|
|
*/ |
363
|
|
|
public function getInitiateLoginUri(): ?string |
364
|
|
|
{ |
365
|
|
|
return $this->initiateLoginUri; |
366
|
|
|
} |
367
|
|
|
|
368
|
|
|
/** |
369
|
|
|
* @param null|string $initiateLoginUri |
370
|
|
|
*/ |
371
|
|
|
public function setInitiateLoginUri(?string $initiateLoginUri): void |
372
|
|
|
{ |
373
|
|
|
$this->initiateLoginUri = $initiateLoginUri; |
374
|
|
|
} |
375
|
|
|
|
376
|
|
|
/** |
377
|
|
|
* @return null|string[] |
378
|
|
|
*/ |
379
|
|
|
public function getRequestUris(): ?array |
380
|
|
|
{ |
381
|
|
|
return $this->requestUris; |
382
|
|
|
} |
383
|
|
|
|
384
|
|
|
/** |
385
|
|
|
* @param null|string[] $requestUris |
386
|
|
|
*/ |
387
|
|
|
public function setRequestUris(?array $requestUris): void |
388
|
|
|
{ |
389
|
|
|
$this->requestUris = $requestUris; |
390
|
|
|
} |
391
|
|
|
|
392
|
|
|
} |