|
1
|
|
|
<?php |
|
2
|
|
|
namespace Checkdomain\Comodo\Model\Result; |
|
3
|
|
|
|
|
4
|
|
|
/** |
|
5
|
|
|
* Class SslCheckerResult |
|
6
|
|
|
*/ |
|
7
|
|
|
class SslCheckerResult extends AbstractResult |
|
8
|
|
|
{ |
|
9
|
|
|
/** |
|
10
|
|
|
* @var string |
|
11
|
|
|
*/ |
|
12
|
|
|
protected $serverUrl; |
|
13
|
|
|
|
|
14
|
|
|
/** |
|
15
|
|
|
* @var string |
|
16
|
|
|
*/ |
|
17
|
|
|
protected $serverDomainIsIDN; |
|
18
|
|
|
|
|
19
|
|
|
/** |
|
20
|
|
|
* @var string |
|
21
|
|
|
*/ |
|
22
|
|
|
protected $serverDomainUtf8; |
|
23
|
|
|
|
|
24
|
|
|
/** |
|
25
|
|
|
* @var string |
|
26
|
|
|
*/ |
|
27
|
|
|
protected $serverDomainAce; |
|
28
|
|
|
|
|
29
|
|
|
/** |
|
30
|
|
|
* @var string |
|
31
|
|
|
*/ |
|
32
|
|
|
protected $serverIp; |
|
33
|
|
|
|
|
34
|
|
|
/** |
|
35
|
|
|
* @var integer |
|
36
|
|
|
*/ |
|
37
|
|
|
protected $serverPort; |
|
38
|
|
|
|
|
39
|
|
|
/** |
|
40
|
|
|
* @var string |
|
41
|
|
|
*/ |
|
42
|
|
|
protected $serverSoftware; |
|
43
|
|
|
|
|
44
|
|
|
/** |
|
45
|
|
|
* @var \DateTime |
|
46
|
|
|
*/ |
|
47
|
|
|
protected $certNotBefore; |
|
48
|
|
|
|
|
49
|
|
|
/** |
|
50
|
|
|
* @var \DateTime |
|
51
|
|
|
*/ |
|
52
|
|
|
protected $certNotAfter; |
|
53
|
|
|
|
|
54
|
|
|
/** |
|
55
|
|
|
* @var string |
|
56
|
|
|
*/ |
|
57
|
|
|
protected $certValidityNotBefore; |
|
58
|
|
|
|
|
59
|
|
|
/** |
|
60
|
|
|
* @var string |
|
61
|
|
|
*/ |
|
62
|
|
|
protected $certValidityNotAfter; |
|
63
|
|
|
|
|
64
|
|
|
/** |
|
65
|
|
|
* @var string |
|
66
|
|
|
*/ |
|
67
|
|
|
protected $certKeyAlgorithm; |
|
68
|
|
|
|
|
69
|
|
|
/** |
|
70
|
|
|
* @var string |
|
71
|
|
|
*/ |
|
72
|
|
|
protected $certKeySize; |
|
73
|
|
|
|
|
74
|
|
|
/** |
|
75
|
|
|
* @var string |
|
76
|
|
|
*/ |
|
77
|
|
|
protected $certSubjectDN; |
|
78
|
|
|
|
|
79
|
|
|
/** |
|
80
|
|
|
* @var string |
|
81
|
|
|
*/ |
|
82
|
|
|
protected $certSubjectCN; |
|
83
|
|
|
|
|
84
|
|
|
/** |
|
85
|
|
|
* @var string |
|
86
|
|
|
*/ |
|
87
|
|
|
protected $certSubjectOU; |
|
88
|
|
|
|
|
89
|
|
|
/** |
|
90
|
|
|
* @var string |
|
91
|
|
|
*/ |
|
92
|
|
|
protected $certSubjectOrganization; |
|
93
|
|
|
|
|
94
|
|
|
/** |
|
95
|
|
|
* @var string |
|
96
|
|
|
*/ |
|
97
|
|
|
protected $certSubjectStreetAddress1; |
|
98
|
|
|
|
|
99
|
|
|
/** |
|
100
|
|
|
* @var string |
|
101
|
|
|
*/ |
|
102
|
|
|
protected $certSubjectStreetAddress2; |
|
103
|
|
|
|
|
104
|
|
|
/** |
|
105
|
|
|
* @var string |
|
106
|
|
|
*/ |
|
107
|
|
|
protected $certSubjectStreetAddress3; |
|
108
|
|
|
|
|
109
|
|
|
/** |
|
110
|
|
|
* @var string |
|
111
|
|
|
*/ |
|
112
|
|
|
protected $certSubjectLocality; |
|
113
|
|
|
|
|
114
|
|
|
/** |
|
115
|
|
|
* @var string |
|
116
|
|
|
*/ |
|
117
|
|
|
protected $certSubjectState; |
|
118
|
|
|
|
|
119
|
|
|
/** |
|
120
|
|
|
* @var string |
|
121
|
|
|
*/ |
|
122
|
|
|
protected $certSubjectPostalCode ; |
|
123
|
|
|
|
|
124
|
|
|
/** |
|
125
|
|
|
* @var string |
|
126
|
|
|
*/ |
|
127
|
|
|
protected $certSubjectCountry ; |
|
128
|
|
|
|
|
129
|
|
|
/** |
|
130
|
|
|
* @var string |
|
131
|
|
|
*/ |
|
132
|
|
|
protected $certIsMultiDomain; |
|
133
|
|
|
|
|
134
|
|
|
/** |
|
135
|
|
|
* @var string |
|
136
|
|
|
*/ |
|
137
|
|
|
protected $certIsWildcard; |
|
138
|
|
|
|
|
139
|
|
|
/** |
|
140
|
|
|
* @var string |
|
141
|
|
|
*/ |
|
142
|
|
|
protected $certIssuerDN; |
|
143
|
|
|
|
|
144
|
|
|
/** |
|
145
|
|
|
* @var string |
|
146
|
|
|
*/ |
|
147
|
|
|
protected $certIssuerCN; |
|
148
|
|
|
|
|
149
|
|
|
/** |
|
150
|
|
|
* @var string |
|
151
|
|
|
*/ |
|
152
|
|
|
protected $certIssuerOrganization; |
|
153
|
|
|
|
|
154
|
|
|
/** |
|
155
|
|
|
* @var string |
|
156
|
|
|
*/ |
|
157
|
|
|
protected $certIssuerCountry; |
|
158
|
|
|
|
|
159
|
|
|
/** |
|
160
|
|
|
* @var string |
|
161
|
|
|
*/ |
|
162
|
|
|
protected $certIssuerBrand; |
|
163
|
|
|
|
|
164
|
|
|
/** |
|
165
|
|
|
* @var string |
|
166
|
|
|
*/ |
|
167
|
|
|
protected $certPolicyOID; |
|
168
|
|
|
|
|
169
|
|
|
/** |
|
170
|
|
|
* @var string |
|
171
|
|
|
*/ |
|
172
|
|
|
protected $certValidation; |
|
173
|
|
|
|
|
174
|
|
|
/** |
|
175
|
|
|
* @return string |
|
176
|
|
|
*/ |
|
177
|
|
|
public function getServerUrl() |
|
178
|
|
|
{ |
|
179
|
|
|
return $this->serverUrl; |
|
180
|
|
|
} |
|
181
|
|
|
|
|
182
|
|
|
/** |
|
183
|
|
|
* @param string $serverUrl |
|
184
|
|
|
* @return SslCheckerResult |
|
185
|
|
|
*/ |
|
186
|
|
|
public function setServerUrl($serverUrl) |
|
187
|
|
|
{ |
|
188
|
|
|
$this->serverUrl = $serverUrl; |
|
189
|
|
|
return $this; |
|
190
|
|
|
} |
|
191
|
|
|
|
|
192
|
|
|
/** |
|
193
|
|
|
* @return string |
|
194
|
|
|
*/ |
|
195
|
|
|
public function getServerDomainIsIDN() |
|
196
|
|
|
{ |
|
197
|
|
|
return $this->serverDomainIsIDN; |
|
198
|
|
|
} |
|
199
|
|
|
|
|
200
|
|
|
/** |
|
201
|
|
|
* @param string $serverDomainIsIDN |
|
202
|
|
|
* @return SslCheckerResult |
|
203
|
|
|
*/ |
|
204
|
|
|
public function setServerDomainIsIDN($serverDomainIsIDN) |
|
205
|
|
|
{ |
|
206
|
|
|
$this->serverDomainIsIDN = $serverDomainIsIDN; |
|
207
|
|
|
return $this; |
|
208
|
|
|
} |
|
209
|
|
|
|
|
210
|
|
|
/** |
|
211
|
|
|
* @return string |
|
212
|
|
|
*/ |
|
213
|
|
|
public function getServerDomainUtf8() |
|
214
|
|
|
{ |
|
215
|
|
|
return $this->serverDomainUtf8; |
|
216
|
|
|
} |
|
217
|
|
|
|
|
218
|
|
|
/** |
|
219
|
|
|
* @param string $serverDomainUtf8 |
|
220
|
|
|
* @return SslCheckerResult |
|
221
|
|
|
*/ |
|
222
|
|
|
public function setServerDomainUtf8($serverDomainUtf8) |
|
223
|
|
|
{ |
|
224
|
|
|
$this->serverDomainUtf8 = $serverDomainUtf8; |
|
225
|
|
|
return $this; |
|
226
|
|
|
} |
|
227
|
|
|
|
|
228
|
|
|
/** |
|
229
|
|
|
* @return string |
|
230
|
|
|
*/ |
|
231
|
|
|
public function getServerDomainAce() |
|
232
|
|
|
{ |
|
233
|
|
|
return $this->serverDomainAce; |
|
234
|
|
|
} |
|
235
|
|
|
|
|
236
|
|
|
/** |
|
237
|
|
|
* @param string $serverDomainAce |
|
238
|
|
|
* @return SslCheckerResult |
|
239
|
|
|
*/ |
|
240
|
|
|
public function setServerDomainAce($serverDomainAce) |
|
241
|
|
|
{ |
|
242
|
|
|
$this->serverDomainAce = $serverDomainAce; |
|
243
|
|
|
return $this; |
|
244
|
|
|
} |
|
245
|
|
|
|
|
246
|
|
|
/** |
|
247
|
|
|
* @return string |
|
248
|
|
|
*/ |
|
249
|
|
|
public function getServerIp() |
|
250
|
|
|
{ |
|
251
|
|
|
return $this->serverIp; |
|
252
|
|
|
} |
|
253
|
|
|
|
|
254
|
|
|
/** |
|
255
|
|
|
* @param string $serverIp |
|
256
|
|
|
* @return SslCheckerResult |
|
257
|
|
|
*/ |
|
258
|
|
|
public function setServerIp($serverIp) |
|
259
|
|
|
{ |
|
260
|
|
|
$this->serverIp = $serverIp; |
|
261
|
|
|
return $this; |
|
262
|
|
|
} |
|
263
|
|
|
|
|
264
|
|
|
/** |
|
265
|
|
|
* @return int |
|
266
|
|
|
*/ |
|
267
|
|
|
public function getServerPort() |
|
268
|
|
|
{ |
|
269
|
|
|
return $this->serverPort; |
|
270
|
|
|
} |
|
271
|
|
|
|
|
272
|
|
|
/** |
|
273
|
|
|
* @param int $serverPort |
|
274
|
|
|
* @return SslCheckerResult |
|
275
|
|
|
*/ |
|
276
|
|
|
public function setServerPort($serverPort) |
|
277
|
|
|
{ |
|
278
|
|
|
$this->serverPort = $serverPort; |
|
279
|
|
|
return $this; |
|
280
|
|
|
} |
|
281
|
|
|
|
|
282
|
|
|
/** |
|
283
|
|
|
* @return string |
|
284
|
|
|
*/ |
|
285
|
|
|
public function getServerSoftware() |
|
286
|
|
|
{ |
|
287
|
|
|
return $this->serverSoftware; |
|
288
|
|
|
} |
|
289
|
|
|
|
|
290
|
|
|
/** |
|
291
|
|
|
* @param string $serverSoftware |
|
292
|
|
|
* @return SslCheckerResult |
|
293
|
|
|
*/ |
|
294
|
|
|
public function setServerSoftware($serverSoftware) |
|
295
|
|
|
{ |
|
296
|
|
|
$this->serverSoftware = $serverSoftware; |
|
297
|
|
|
return $this; |
|
298
|
|
|
} |
|
299
|
|
|
|
|
300
|
|
|
/** |
|
301
|
|
|
* @return \DateTime |
|
302
|
|
|
*/ |
|
303
|
|
|
public function getCertNotBefore() |
|
304
|
|
|
{ |
|
305
|
|
|
return $this->certNotBefore; |
|
306
|
|
|
} |
|
307
|
|
|
|
|
308
|
|
|
/** |
|
309
|
|
|
* @param \DateTime $certNotBefore |
|
310
|
|
|
* @return SslCheckerResult |
|
311
|
|
|
*/ |
|
312
|
|
|
public function setCertNotBefore($certNotBefore) |
|
313
|
|
|
{ |
|
314
|
|
|
$this->certNotBefore = $certNotBefore; |
|
315
|
|
|
return $this; |
|
316
|
|
|
} |
|
317
|
|
|
|
|
318
|
|
|
/** |
|
319
|
|
|
* @param integer $certNotBefore |
|
320
|
|
|
* @return SslCheckerResult |
|
321
|
|
|
*/ |
|
322
|
|
|
public function setCertNotBeforeFromUnixTimestamp($certNotBefore) |
|
323
|
|
|
{ |
|
324
|
|
|
$this->certNotBefore = new \DateTime("@$certNotBefore"); |
|
325
|
|
|
return $this; |
|
326
|
|
|
} |
|
327
|
|
|
|
|
328
|
|
|
/** |
|
329
|
|
|
* @return \DateTime |
|
330
|
|
|
*/ |
|
331
|
|
|
public function getCertNotAfter() |
|
332
|
|
|
{ |
|
333
|
|
|
return $this->certNotAfter; |
|
334
|
|
|
} |
|
335
|
|
|
|
|
336
|
|
|
/** |
|
337
|
|
|
* @param \DateTime $certNotAfter |
|
338
|
|
|
* @return SslCheckerResult |
|
339
|
|
|
*/ |
|
340
|
|
|
public function setCertNotAfter($certNotAfter) |
|
341
|
|
|
{ |
|
342
|
|
|
$this->certNotAfter = $certNotAfter; |
|
343
|
|
|
return $this; |
|
344
|
|
|
} |
|
345
|
|
|
|
|
346
|
|
|
/** |
|
347
|
|
|
* @param integer $certNotAfter |
|
348
|
|
|
* @return SslCheckerResult |
|
349
|
|
|
*/ |
|
350
|
|
|
public function setCertNotAfterFromUnixTimestamp($certNotAfter) |
|
351
|
|
|
{ |
|
352
|
|
|
$this->certNotAfter = new \DateTime("@$certNotAfter");; |
|
353
|
|
|
return $this; |
|
354
|
|
|
} |
|
355
|
|
|
|
|
356
|
|
|
/** |
|
357
|
|
|
* @return \DateTime |
|
358
|
|
|
*/ |
|
359
|
|
|
public function getCertValidityNotBefore() |
|
360
|
|
|
{ |
|
361
|
|
|
return $this->certValidityNotBefore; |
|
362
|
|
|
} |
|
363
|
|
|
|
|
364
|
|
|
/** |
|
365
|
|
|
* @param \DateTime $certValidityNotBefore |
|
366
|
|
|
* @return SslCheckerResult |
|
367
|
|
|
*/ |
|
368
|
|
|
public function setCertValidityNotBefore($certValidityNotBefore) |
|
369
|
|
|
{ |
|
370
|
|
|
$this->certValidityNotBefore = $certValidityNotBefore; |
|
|
|
|
|
|
371
|
|
|
return $this; |
|
372
|
|
|
} |
|
373
|
|
|
|
|
374
|
|
|
/** |
|
375
|
|
|
* @return \DateTime |
|
376
|
|
|
*/ |
|
377
|
|
|
public function getCertValidityNotAfter() |
|
378
|
|
|
{ |
|
379
|
|
|
return $this->certValidityNotAfter; |
|
380
|
|
|
} |
|
381
|
|
|
|
|
382
|
|
|
/** |
|
383
|
|
|
* @param \DateTime $certValidityNotAfter |
|
384
|
|
|
* @return SslCheckerResult |
|
385
|
|
|
*/ |
|
386
|
|
|
public function setCertValidityNotAfter($certValidityNotAfter) |
|
387
|
|
|
{ |
|
388
|
|
|
$this->certValidityNotAfter = $certValidityNotAfter; |
|
|
|
|
|
|
389
|
|
|
return $this; |
|
390
|
|
|
} |
|
391
|
|
|
|
|
392
|
|
|
/** |
|
393
|
|
|
* @return string |
|
394
|
|
|
*/ |
|
395
|
|
|
public function getCertKeyAlgorithm() |
|
396
|
|
|
{ |
|
397
|
|
|
return $this->certKeyAlgorithm; |
|
398
|
|
|
} |
|
399
|
|
|
|
|
400
|
|
|
/** |
|
401
|
|
|
* @param string $certKeyAlgorithm |
|
402
|
|
|
* @return SslCheckerResult |
|
403
|
|
|
*/ |
|
404
|
|
|
public function setCertKeyAlgorithm($certKeyAlgorithm) |
|
405
|
|
|
{ |
|
406
|
|
|
$this->certKeyAlgorithm = $certKeyAlgorithm; |
|
407
|
|
|
return $this; |
|
408
|
|
|
} |
|
409
|
|
|
|
|
410
|
|
|
/** |
|
411
|
|
|
* @return string |
|
412
|
|
|
*/ |
|
413
|
|
|
public function getCertKeySize() |
|
414
|
|
|
{ |
|
415
|
|
|
return $this->certKeySize; |
|
416
|
|
|
} |
|
417
|
|
|
|
|
418
|
|
|
/** |
|
419
|
|
|
* @param string $certKeySize |
|
420
|
|
|
* @return SslCheckerResult |
|
421
|
|
|
*/ |
|
422
|
|
|
public function setCertKeySize($certKeySize) |
|
423
|
|
|
{ |
|
424
|
|
|
$this->certKeySize = $certKeySize; |
|
425
|
|
|
return $this; |
|
426
|
|
|
} |
|
427
|
|
|
|
|
428
|
|
|
/** |
|
429
|
|
|
* @return string |
|
430
|
|
|
*/ |
|
431
|
|
|
public function getCertSubjectDN() |
|
432
|
|
|
{ |
|
433
|
|
|
return $this->certSubjectDN; |
|
434
|
|
|
} |
|
435
|
|
|
|
|
436
|
|
|
/** |
|
437
|
|
|
* @param string $certSubjectDN |
|
438
|
|
|
* @return SslCheckerResult |
|
439
|
|
|
*/ |
|
440
|
|
|
public function setCertSubjectDN($certSubjectDN) |
|
441
|
|
|
{ |
|
442
|
|
|
$this->certSubjectDN = $certSubjectDN; |
|
443
|
|
|
return $this; |
|
444
|
|
|
} |
|
445
|
|
|
|
|
446
|
|
|
/** |
|
447
|
|
|
* @return string |
|
448
|
|
|
*/ |
|
449
|
|
|
public function getCertSubjectCN() |
|
450
|
|
|
{ |
|
451
|
|
|
return $this->certSubjectCN; |
|
452
|
|
|
} |
|
453
|
|
|
|
|
454
|
|
|
/** |
|
455
|
|
|
* @param string $certSubjectCN |
|
456
|
|
|
* @return SslCheckerResult |
|
457
|
|
|
*/ |
|
458
|
|
|
public function setCertSubjectCN($certSubjectCN) |
|
459
|
|
|
{ |
|
460
|
|
|
$this->certSubjectCN = $certSubjectCN; |
|
461
|
|
|
return $this; |
|
462
|
|
|
} |
|
463
|
|
|
|
|
464
|
|
|
/** |
|
465
|
|
|
* @return string |
|
466
|
|
|
*/ |
|
467
|
|
|
public function getCertSubjectOU() |
|
468
|
|
|
{ |
|
469
|
|
|
return $this->certSubjectOU; |
|
470
|
|
|
} |
|
471
|
|
|
|
|
472
|
|
|
/** |
|
473
|
|
|
* @param string $certSubjectOU |
|
474
|
|
|
* @return SslCheckerResult |
|
475
|
|
|
*/ |
|
476
|
|
|
public function setCertSubjectOU($certSubjectOU) |
|
477
|
|
|
{ |
|
478
|
|
|
$this->certSubjectOU = $certSubjectOU; |
|
479
|
|
|
return $this; |
|
480
|
|
|
} |
|
481
|
|
|
|
|
482
|
|
|
/** |
|
483
|
|
|
* @return string |
|
484
|
|
|
*/ |
|
485
|
|
|
public function getCertSubjectOrganization() |
|
486
|
|
|
{ |
|
487
|
|
|
return $this->certSubjectOrganization; |
|
488
|
|
|
} |
|
489
|
|
|
|
|
490
|
|
|
/** |
|
491
|
|
|
* @param string $certSubjectOrganization |
|
492
|
|
|
* @return SslCheckerResult |
|
493
|
|
|
*/ |
|
494
|
|
|
public function setCertSubjectOrganization($certSubjectOrganization) |
|
495
|
|
|
{ |
|
496
|
|
|
$this->certSubjectOrganization = $certSubjectOrganization; |
|
497
|
|
|
return $this; |
|
498
|
|
|
} |
|
499
|
|
|
|
|
500
|
|
|
/** |
|
501
|
|
|
* @return string |
|
502
|
|
|
*/ |
|
503
|
|
|
public function getCertSubjectStreetAddress1() |
|
504
|
|
|
{ |
|
505
|
|
|
return $this->certSubjectStreetAddress1; |
|
506
|
|
|
} |
|
507
|
|
|
|
|
508
|
|
|
/** |
|
509
|
|
|
* @param string $certSubjectStreetAddress1 |
|
510
|
|
|
* @return SslCheckerResult |
|
511
|
|
|
*/ |
|
512
|
|
|
public function setCertSubjectStreetAddress1($certSubjectStreetAddress1) |
|
513
|
|
|
{ |
|
514
|
|
|
$this->certSubjectStreetAddress1 = $certSubjectStreetAddress1; |
|
515
|
|
|
return $this; |
|
516
|
|
|
} |
|
517
|
|
|
|
|
518
|
|
|
/** |
|
519
|
|
|
* @return string |
|
520
|
|
|
*/ |
|
521
|
|
|
public function getCertSubjectStreetAddress2() |
|
522
|
|
|
{ |
|
523
|
|
|
return $this->certSubjectStreetAddress2; |
|
524
|
|
|
} |
|
525
|
|
|
|
|
526
|
|
|
/** |
|
527
|
|
|
* @param string $certSubjectStreetAddress2 |
|
528
|
|
|
* @return SslCheckerResult |
|
529
|
|
|
*/ |
|
530
|
|
|
public function setCertSubjectStreetAddress2($certSubjectStreetAddress2) |
|
531
|
|
|
{ |
|
532
|
|
|
$this->certSubjectStreetAddress2 = $certSubjectStreetAddress2; |
|
533
|
|
|
return $this; |
|
534
|
|
|
} |
|
535
|
|
|
|
|
536
|
|
|
/** |
|
537
|
|
|
* @return string |
|
538
|
|
|
*/ |
|
539
|
|
|
public function getCertSubjectStreetAddress3() |
|
540
|
|
|
{ |
|
541
|
|
|
return $this->certSubjectStreetAddress3; |
|
542
|
|
|
} |
|
543
|
|
|
|
|
544
|
|
|
/** |
|
545
|
|
|
* @param string $certSubjectStreetAddress3 |
|
546
|
|
|
* @return SslCheckerResult |
|
547
|
|
|
*/ |
|
548
|
|
|
public function setCertSubjectStreetAddress3($certSubjectStreetAddress3) |
|
549
|
|
|
{ |
|
550
|
|
|
$this->certSubjectStreetAddress3 = $certSubjectStreetAddress3; |
|
551
|
|
|
return $this; |
|
552
|
|
|
} |
|
553
|
|
|
|
|
554
|
|
|
/** |
|
555
|
|
|
* @return string |
|
556
|
|
|
*/ |
|
557
|
|
|
public function getCertSubjectLocality() |
|
558
|
|
|
{ |
|
559
|
|
|
return $this->certSubjectLocality; |
|
560
|
|
|
} |
|
561
|
|
|
|
|
562
|
|
|
/** |
|
563
|
|
|
* @param string $certSubjectLocality |
|
564
|
|
|
* @return SslCheckerResult |
|
565
|
|
|
*/ |
|
566
|
|
|
public function setCertSubjectLocality($certSubjectLocality) |
|
567
|
|
|
{ |
|
568
|
|
|
$this->certSubjectLocality = $certSubjectLocality; |
|
569
|
|
|
return $this; |
|
570
|
|
|
} |
|
571
|
|
|
|
|
572
|
|
|
/** |
|
573
|
|
|
* @return string |
|
574
|
|
|
*/ |
|
575
|
|
|
public function getCertSubjectState() |
|
576
|
|
|
{ |
|
577
|
|
|
return $this->certSubjectState; |
|
578
|
|
|
} |
|
579
|
|
|
|
|
580
|
|
|
/** |
|
581
|
|
|
* @param string $certSubjectState |
|
582
|
|
|
* @return SslCheckerResult |
|
583
|
|
|
*/ |
|
584
|
|
|
public function setCertSubjectState($certSubjectState) |
|
585
|
|
|
{ |
|
586
|
|
|
$this->certSubjectState = $certSubjectState; |
|
587
|
|
|
return $this; |
|
588
|
|
|
} |
|
589
|
|
|
|
|
590
|
|
|
/** |
|
591
|
|
|
* @return string |
|
592
|
|
|
*/ |
|
593
|
|
|
public function getCertSubjectPostalCode() |
|
594
|
|
|
{ |
|
595
|
|
|
return $this->certSubjectPostalCode; |
|
596
|
|
|
} |
|
597
|
|
|
|
|
598
|
|
|
/** |
|
599
|
|
|
* @param string $certSubjectPostalCode |
|
600
|
|
|
* @return SslCheckerResult |
|
601
|
|
|
*/ |
|
602
|
|
|
public function setCertSubjectPostalCode($certSubjectPostalCode) |
|
603
|
|
|
{ |
|
604
|
|
|
$this->certSubjectPostalCode = $certSubjectPostalCode; |
|
605
|
|
|
return $this; |
|
606
|
|
|
} |
|
607
|
|
|
|
|
608
|
|
|
/** |
|
609
|
|
|
* @return string |
|
610
|
|
|
*/ |
|
611
|
|
|
public function getCertSubjectCountry() |
|
612
|
|
|
{ |
|
613
|
|
|
return $this->certSubjectCountry; |
|
614
|
|
|
} |
|
615
|
|
|
|
|
616
|
|
|
/** |
|
617
|
|
|
* @param string $certSubjectCountry |
|
618
|
|
|
* @return SslCheckerResult |
|
619
|
|
|
*/ |
|
620
|
|
|
public function setCertSubjectCountry($certSubjectCountry) |
|
621
|
|
|
{ |
|
622
|
|
|
$this->certSubjectCountry = $certSubjectCountry; |
|
623
|
|
|
return $this; |
|
624
|
|
|
} |
|
625
|
|
|
|
|
626
|
|
|
/** |
|
627
|
|
|
* @return string |
|
628
|
|
|
*/ |
|
629
|
|
|
public function getCertIsMultiDomain() |
|
630
|
|
|
{ |
|
631
|
|
|
return $this->certIsMultiDomain; |
|
632
|
|
|
} |
|
633
|
|
|
|
|
634
|
|
|
/** |
|
635
|
|
|
* @param string $certIsMultiDomain |
|
636
|
|
|
* @return SslCheckerResult |
|
637
|
|
|
*/ |
|
638
|
|
|
public function setCertIsMultiDomain($certIsMultiDomain) |
|
639
|
|
|
{ |
|
640
|
|
|
$this->certIsMultiDomain = $certIsMultiDomain; |
|
641
|
|
|
return $this; |
|
642
|
|
|
} |
|
643
|
|
|
|
|
644
|
|
|
/** |
|
645
|
|
|
* @return string |
|
646
|
|
|
*/ |
|
647
|
|
|
public function getCertIsWildcard() |
|
648
|
|
|
{ |
|
649
|
|
|
return $this->certIsWildcard; |
|
650
|
|
|
} |
|
651
|
|
|
|
|
652
|
|
|
/** |
|
653
|
|
|
* @param string $certIsWildcard |
|
654
|
|
|
* @return SslCheckerResult |
|
655
|
|
|
*/ |
|
656
|
|
|
public function setCertIsWildcard($certIsWildcard) |
|
657
|
|
|
{ |
|
658
|
|
|
$this->certIsWildcard = $certIsWildcard; |
|
659
|
|
|
return $this; |
|
660
|
|
|
} |
|
661
|
|
|
|
|
662
|
|
|
/** |
|
663
|
|
|
* @return string |
|
664
|
|
|
*/ |
|
665
|
|
|
public function getCertIssuerDN() |
|
666
|
|
|
{ |
|
667
|
|
|
return $this->certIssuerDN; |
|
668
|
|
|
} |
|
669
|
|
|
|
|
670
|
|
|
/** |
|
671
|
|
|
* @param string $certIssuerDN |
|
672
|
|
|
* @return SslCheckerResult |
|
673
|
|
|
*/ |
|
674
|
|
|
public function setCertIssuerDN($certIssuerDN) |
|
675
|
|
|
{ |
|
676
|
|
|
$this->certIssuerDN = $certIssuerDN; |
|
677
|
|
|
return $this; |
|
678
|
|
|
} |
|
679
|
|
|
|
|
680
|
|
|
/** |
|
681
|
|
|
* @return string |
|
682
|
|
|
*/ |
|
683
|
|
|
public function getCertIssuerCN() |
|
684
|
|
|
{ |
|
685
|
|
|
return $this->certIssuerCN; |
|
686
|
|
|
} |
|
687
|
|
|
|
|
688
|
|
|
/** |
|
689
|
|
|
* @param string $certIssuerCN |
|
690
|
|
|
* @return SslCheckerResult |
|
691
|
|
|
*/ |
|
692
|
|
|
public function setCertIssuerCN($certIssuerCN) |
|
693
|
|
|
{ |
|
694
|
|
|
$this->certIssuerCN = $certIssuerCN; |
|
695
|
|
|
return $this; |
|
696
|
|
|
} |
|
697
|
|
|
|
|
698
|
|
|
/** |
|
699
|
|
|
* @return string |
|
700
|
|
|
*/ |
|
701
|
|
|
public function getCertIssuerOrganization() |
|
702
|
|
|
{ |
|
703
|
|
|
return $this->certIssuerOrganization; |
|
704
|
|
|
} |
|
705
|
|
|
|
|
706
|
|
|
/** |
|
707
|
|
|
* @param string $certIssuerOrganization |
|
708
|
|
|
* @return SslCheckerResult |
|
709
|
|
|
*/ |
|
710
|
|
|
public function setCertIssuerOrganization($certIssuerOrganization) |
|
711
|
|
|
{ |
|
712
|
|
|
$this->certIssuerOrganization = $certIssuerOrganization; |
|
713
|
|
|
return $this; |
|
714
|
|
|
} |
|
715
|
|
|
|
|
716
|
|
|
/** |
|
717
|
|
|
* @return string |
|
718
|
|
|
*/ |
|
719
|
|
|
public function getCertIssuerCountry() |
|
720
|
|
|
{ |
|
721
|
|
|
return $this->certIssuerCountry; |
|
722
|
|
|
} |
|
723
|
|
|
|
|
724
|
|
|
/** |
|
725
|
|
|
* @param string $certIssuerCountry |
|
726
|
|
|
* @return SslCheckerResult |
|
727
|
|
|
*/ |
|
728
|
|
|
public function setCertIssuerCountry($certIssuerCountry) |
|
729
|
|
|
{ |
|
730
|
|
|
$this->certIssuerCountry = $certIssuerCountry; |
|
731
|
|
|
return $this; |
|
732
|
|
|
} |
|
733
|
|
|
|
|
734
|
|
|
/** |
|
735
|
|
|
* @return string |
|
736
|
|
|
*/ |
|
737
|
|
|
public function getCertIssuerBrand() |
|
738
|
|
|
{ |
|
739
|
|
|
return $this->certIssuerBrand; |
|
740
|
|
|
} |
|
741
|
|
|
|
|
742
|
|
|
/** |
|
743
|
|
|
* @param string $certIssuerBrand |
|
744
|
|
|
* @return SslCheckerResult |
|
745
|
|
|
*/ |
|
746
|
|
|
public function setCertIssuerBrand($certIssuerBrand) |
|
747
|
|
|
{ |
|
748
|
|
|
$this->certIssuerBrand = $certIssuerBrand; |
|
749
|
|
|
return $this; |
|
750
|
|
|
} |
|
751
|
|
|
|
|
752
|
|
|
/** |
|
753
|
|
|
* @return string |
|
754
|
|
|
*/ |
|
755
|
|
|
public function getCertPolicyOID() |
|
756
|
|
|
{ |
|
757
|
|
|
return $this->certPolicyOID; |
|
758
|
|
|
} |
|
759
|
|
|
|
|
760
|
|
|
/** |
|
761
|
|
|
* @param string $certPolicyOID |
|
762
|
|
|
* @return SslCheckerResult |
|
763
|
|
|
*/ |
|
764
|
|
|
public function setCertPolicyOID($certPolicyOID) |
|
765
|
|
|
{ |
|
766
|
|
|
$this->certPolicyOID = $certPolicyOID; |
|
767
|
|
|
return $this; |
|
768
|
|
|
} |
|
769
|
|
|
|
|
770
|
|
|
/** |
|
771
|
|
|
* @return string |
|
772
|
|
|
*/ |
|
773
|
|
|
public function getCertValidation() |
|
774
|
|
|
{ |
|
775
|
|
|
return $this->certValidation; |
|
776
|
|
|
} |
|
777
|
|
|
|
|
778
|
|
|
/** |
|
779
|
|
|
* @param string $certValidation |
|
780
|
|
|
* @return SslCheckerResult |
|
781
|
|
|
*/ |
|
782
|
|
|
public function setCertValidation($certValidation) |
|
783
|
|
|
{ |
|
784
|
|
|
$this->certValidation = $certValidation; |
|
785
|
|
|
return $this; |
|
786
|
|
|
} |
|
787
|
|
|
|
|
788
|
|
|
} |
|
789
|
|
|
|
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..