1
|
|
|
<?php |
2
|
|
|
/** |
3
|
|
|
* Created by PhpStorm. |
4
|
|
|
* User: Alexandre |
5
|
|
|
* Date: 06/03/2018 |
6
|
|
|
* Time: 23:37 |
7
|
|
|
*/ |
8
|
|
|
|
9
|
|
|
namespace OAuth2\Roles\Clients; |
10
|
|
|
|
11
|
|
|
class ClientMetadata |
12
|
|
|
{ |
13
|
|
|
/** |
14
|
|
|
* @var array|null |
15
|
|
|
*/ |
16
|
|
|
protected $redirectUris; |
17
|
|
|
/** |
18
|
|
|
* @var string|null |
19
|
|
|
*/ |
20
|
|
|
protected $tokenEndpointAuthMethod; |
21
|
|
|
/** |
22
|
|
|
* @var array|null |
23
|
|
|
*/ |
24
|
|
|
protected $grantTypes; |
25
|
|
|
/** |
26
|
|
|
* @var array|null |
27
|
|
|
*/ |
28
|
|
|
protected $responseTypes; |
29
|
|
|
/** |
30
|
|
|
* @var string|null |
31
|
|
|
*/ |
32
|
|
|
protected $clientName; |
33
|
|
|
/** |
34
|
|
|
* @var string|null |
35
|
|
|
*/ |
36
|
|
|
protected $clientUri; |
37
|
|
|
/** |
38
|
|
|
* @var string|null |
39
|
|
|
*/ |
40
|
|
|
protected $logoUri; |
41
|
|
|
/** |
42
|
|
|
* @var string|null |
43
|
|
|
*/ |
44
|
|
|
protected $scope; |
45
|
|
|
/** |
46
|
|
|
* @var array|null |
47
|
|
|
*/ |
48
|
|
|
protected $contacts; |
49
|
|
|
/** |
50
|
|
|
* @var string|null |
51
|
|
|
*/ |
52
|
|
|
protected $tosUri; |
53
|
|
|
/** |
54
|
|
|
* @var string|null |
55
|
|
|
*/ |
56
|
|
|
protected $policyUri; |
57
|
|
|
/** |
58
|
|
|
* @var string|null |
59
|
|
|
*/ |
60
|
|
|
protected $jwksUri; |
61
|
|
|
/** |
62
|
|
|
* @var array|null |
63
|
|
|
*/ |
64
|
|
|
protected $jwks; |
65
|
|
|
/** |
66
|
|
|
* @var string|null |
67
|
|
|
*/ |
68
|
|
|
protected $softwareId; |
69
|
|
|
/** |
70
|
|
|
* @var string|null |
71
|
|
|
*/ |
72
|
|
|
protected $softwareVersion; |
73
|
|
|
|
74
|
|
|
/** |
75
|
|
|
* @return array|null |
76
|
|
|
*/ |
77
|
|
|
public function getRedirectUris(): ?array |
78
|
|
|
{ |
79
|
|
|
return $this->redirectUris; |
80
|
|
|
} |
81
|
|
|
|
82
|
|
|
/** |
83
|
|
|
* @param array|null $redirectUris |
84
|
|
|
*/ |
85
|
|
|
public function setRedirectUris(?array $redirectUris): void |
86
|
|
|
{ |
87
|
|
|
$this->redirectUris = $redirectUris; |
88
|
|
|
} |
89
|
|
|
|
90
|
|
|
/** |
91
|
|
|
* @return null|string |
92
|
|
|
*/ |
93
|
|
|
public function getTokenEndpointAuthMethod(): ?string |
94
|
|
|
{ |
95
|
|
|
return $this->tokenEndpointAuthMethod; |
96
|
|
|
} |
97
|
|
|
|
98
|
|
|
/** |
99
|
|
|
* @param null|string $tokenEndpointAuthMethod |
100
|
|
|
*/ |
101
|
|
|
public function setTokenEndpointAuthMethod(?string $tokenEndpointAuthMethod): void |
102
|
|
|
{ |
103
|
|
|
$this->tokenEndpointAuthMethod = $tokenEndpointAuthMethod; |
104
|
|
|
} |
105
|
|
|
|
106
|
|
|
/** |
107
|
|
|
* @return array|null |
108
|
|
|
*/ |
109
|
|
|
public function getGrantTypes(): ?array |
110
|
|
|
{ |
111
|
|
|
return $this->grantTypes; |
112
|
|
|
} |
113
|
|
|
|
114
|
|
|
/** |
115
|
|
|
* @param array|null $grantTypes |
116
|
|
|
*/ |
117
|
|
|
public function setGrantTypes(?array $grantTypes): void |
118
|
|
|
{ |
119
|
|
|
$this->grantTypes = $grantTypes; |
120
|
|
|
} |
121
|
|
|
|
122
|
|
|
/** |
123
|
|
|
* @return array|null |
124
|
|
|
*/ |
125
|
|
|
public function getResponseTypes(): ?array |
126
|
|
|
{ |
127
|
|
|
return $this->responseTypes; |
128
|
|
|
} |
129
|
|
|
|
130
|
|
|
/** |
131
|
|
|
* @param array|null $responseTypes |
132
|
|
|
*/ |
133
|
|
|
public function setResponseTypes(?array $responseTypes): void |
134
|
|
|
{ |
135
|
|
|
$this->responseTypes = $responseTypes; |
136
|
|
|
} |
137
|
|
|
|
138
|
|
|
/** |
139
|
|
|
* @return null|string |
140
|
|
|
*/ |
141
|
|
|
public function getClientName(): ?string |
142
|
|
|
{ |
143
|
|
|
return $this->clientName; |
144
|
|
|
} |
145
|
|
|
|
146
|
|
|
/** |
147
|
|
|
* @param null|string $clientName |
148
|
|
|
*/ |
149
|
|
|
public function setClientName(?string $clientName): void |
150
|
|
|
{ |
151
|
|
|
$this->clientName = $clientName; |
152
|
|
|
} |
153
|
|
|
|
154
|
|
|
/** |
155
|
|
|
* @return null|string |
156
|
|
|
*/ |
157
|
|
|
public function getClientUri(): ?string |
158
|
|
|
{ |
159
|
|
|
return $this->clientUri; |
160
|
|
|
} |
161
|
|
|
|
162
|
|
|
/** |
163
|
|
|
* @param null|string $clientUri |
164
|
|
|
*/ |
165
|
|
|
public function setClientUri(?string $clientUri): void |
166
|
|
|
{ |
167
|
|
|
$this->clientUri = $clientUri; |
168
|
|
|
} |
169
|
|
|
|
170
|
|
|
/** |
171
|
|
|
* @return null|string |
172
|
|
|
*/ |
173
|
|
|
public function getLogoUri(): ?string |
174
|
|
|
{ |
175
|
|
|
return $this->logoUri; |
176
|
|
|
} |
177
|
|
|
|
178
|
|
|
/** |
179
|
|
|
* @param null|string $logoUri |
180
|
|
|
*/ |
181
|
|
|
public function setLogoUri(?string $logoUri): void |
182
|
|
|
{ |
183
|
|
|
$this->logoUri = $logoUri; |
184
|
|
|
} |
185
|
|
|
|
186
|
|
|
/** |
187
|
|
|
* @return null|string |
188
|
|
|
*/ |
189
|
|
|
public function getScope(): ?string |
190
|
|
|
{ |
191
|
|
|
return $this->scope; |
192
|
|
|
} |
193
|
|
|
|
194
|
|
|
/** |
195
|
|
|
* @param null|string $scope |
196
|
|
|
*/ |
197
|
|
|
public function setScope(?string $scope): void |
198
|
|
|
{ |
199
|
|
|
$this->scope = $scope; |
200
|
|
|
} |
201
|
|
|
|
202
|
|
|
/** |
203
|
|
|
* @return array|null |
204
|
|
|
*/ |
205
|
|
|
public function getContacts(): ?array |
206
|
|
|
{ |
207
|
|
|
return $this->contacts; |
208
|
|
|
} |
209
|
|
|
|
210
|
|
|
/** |
211
|
|
|
* @param array|null $contacts |
212
|
|
|
*/ |
213
|
|
|
public function setContacts(?array $contacts): void |
214
|
|
|
{ |
215
|
|
|
$this->contacts = $contacts; |
216
|
|
|
} |
217
|
|
|
|
218
|
|
|
/** |
219
|
|
|
* @return null|string |
220
|
|
|
*/ |
221
|
|
|
public function getTosUri(): ?string |
222
|
|
|
{ |
223
|
|
|
return $this->tosUri; |
224
|
|
|
} |
225
|
|
|
|
226
|
|
|
/** |
227
|
|
|
* @param null|string $tosUri |
228
|
|
|
*/ |
229
|
|
|
public function setTosUri(?string $tosUri): void |
230
|
|
|
{ |
231
|
|
|
$this->tosUri = $tosUri; |
232
|
|
|
} |
233
|
|
|
|
234
|
|
|
/** |
235
|
|
|
* @return null|string |
236
|
|
|
*/ |
237
|
|
|
public function getPolicyUri(): ?string |
238
|
|
|
{ |
239
|
|
|
return $this->policyUri; |
240
|
|
|
} |
241
|
|
|
|
242
|
|
|
/** |
243
|
|
|
* @param null|string $policyUri |
244
|
|
|
*/ |
245
|
|
|
public function setPolicyUri(?string $policyUri): void |
246
|
|
|
{ |
247
|
|
|
$this->policyUri = $policyUri; |
248
|
|
|
} |
249
|
|
|
|
250
|
|
|
/** |
251
|
|
|
* @return null|string |
252
|
|
|
*/ |
253
|
|
|
public function getJwksUri(): ?string |
254
|
|
|
{ |
255
|
|
|
return $this->jwksUri; |
256
|
|
|
} |
257
|
|
|
|
258
|
|
|
/** |
259
|
|
|
* @param null|string $jwksUri |
260
|
|
|
*/ |
261
|
|
|
public function setJwksUri(?string $jwksUri): void |
262
|
|
|
{ |
263
|
|
|
$this->jwksUri = $jwksUri; |
264
|
|
|
} |
265
|
|
|
|
266
|
|
|
/** |
267
|
|
|
* @return array|null |
268
|
|
|
*/ |
269
|
|
|
public function getJwks(): ?array |
270
|
|
|
{ |
271
|
|
|
return $this->jwks; |
272
|
|
|
} |
273
|
|
|
|
274
|
|
|
/** |
275
|
|
|
* @param array|null $jwks |
276
|
|
|
*/ |
277
|
|
|
public function setJwks(?array $jwks): void |
278
|
|
|
{ |
279
|
|
|
$this->jwks = $jwks; |
280
|
|
|
} |
281
|
|
|
|
282
|
|
|
/** |
283
|
|
|
* @return null|string |
284
|
|
|
*/ |
285
|
|
|
public function getSoftwareId(): ?string |
286
|
|
|
{ |
287
|
|
|
return $this->softwareId; |
288
|
|
|
} |
289
|
|
|
|
290
|
|
|
/** |
291
|
|
|
* @param null|string $softwareId |
292
|
|
|
*/ |
293
|
|
|
public function setSoftwareId(?string $softwareId): void |
294
|
|
|
{ |
295
|
|
|
$this->softwareId = $softwareId; |
296
|
|
|
} |
297
|
|
|
|
298
|
|
|
/** |
299
|
|
|
* @return null|string |
300
|
|
|
*/ |
301
|
|
|
public function getSoftwareVersion(): ?string |
302
|
|
|
{ |
303
|
|
|
return $this->softwareVersion; |
304
|
|
|
} |
305
|
|
|
|
306
|
|
|
/** |
307
|
|
|
* @param null|string $softwareVersion |
308
|
|
|
*/ |
309
|
|
|
public function setSoftwareVersion(?string $softwareVersion): void |
310
|
|
|
{ |
311
|
|
|
$this->softwareVersion = $softwareVersion; |
312
|
|
|
} |
313
|
|
|
} |