[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 <?php 2 3 declare(strict_types=1); 4 5 /* 6 * The MIT License (MIT) 7 * 8 * Copyright (c) 2014-2019 Spomky-Labs 9 * 10 * This software may be modified and distributed under the terms 11 * of the MIT license. See the LICENSE file for details. 12 */ 13 14 namespace Webauthn\MetadataService; 15 16 use Assert\Assertion; 17 18 class MetadataTOCPayloadEntry 19 { 20 /** 21 * @var string|null 22 */ 23 private $aaid; 24 25 /** 26 * @var string|null 27 */ 28 private $aaguid; 29 30 /** 31 * @var string[] 32 */ 33 private $attestationCertificateKeyIdentifiers = []; 34 35 /** 36 * @var string|null 37 */ 38 private $hash; 39 40 /** 41 * @var string|null 42 */ 43 private $url; 44 45 /** 46 * @var BiometricStatusReport[] 47 */ 48 private $biometricStatusReports = []; 49 50 /** 51 * @var StatusReport[] 52 */ 53 private $statusReports = []; 54 55 /** 56 * @var string 57 */ 58 private $timeOfLastStatusChange; 59 60 /** 61 * @var string 62 */ 63 private $rogueListURL; 64 65 /** 66 * @var string 67 */ 68 private $rogueListHash; 69 70 public function getAaid(): ?string 71 { 72 return $this->aaid; 73 } 74 75 public function getAaguid(): ?string 76 { 77 return $this->aaguid; 78 } 79 80 public function getAttestationCertificateKeyIdentifiers(): array 81 { 82 return $this->attestationCertificateKeyIdentifiers; 83 } 84 85 public function getHash(): ?string 86 { 87 return $this->hash; 88 } 89 90 public function getUrl(): ?string 91 { 92 return $this->url; 93 } 94 95 public function getBiometricStatusReports(): array 96 { 97 return $this->biometricStatusReports; 98 } 99 100 /** 101 * @return StatusReport[] 102 */ 103 public function getStatusReports(): array 104 { 105 return $this->statusReports; 106 } 107 108 public function getTimeOfLastStatusChange(): string 109 { 110 return $this->timeOfLastStatusChange; 111 } 112 113 public function getRogueListURL(): string 114 { 115 return $this->rogueListURL; 116 } 117 118 public function getRogueListHash(): string 119 { 120 return $this->rogueListHash; 121 } 122 123 public static function createFromArray(array $data): self 124 { 125 $object = new self(); 126 $object->aaid = $data['aaid'] ?? null; 127 $object->aaguid = $data['aaguid'] ?? null; 128 $object->attestationCertificateKeyIdentifiers = $data['attestationCertificateKeyIdentifiers'] ?? null; 129 $object->hash = $data['hash'] ?? null; 130 $object->url = $data['url'] ?? null; 131 $object->biometricStatusReports = isset($data['biometricStatusReports']) ? BiometricStatusReport::createFromArray($data['biometricStatusReports']) : null; 132 $object->statusReports = []; 133 if (isset($data['statusReports'])) { 134 Assertion::isArray($data['statusReports'], 'Invalid status report'); 135 foreach ($data['statusReports'] as $k => $statusReport) { 136 $object->statusReports[$k] = StatusReport::createFromArray($statusReport); 137 } 138 } 139 $object->timeOfLastStatusChange = $data['timeOfLastStatusChange'] ?? null; 140 $object->rogueListURL = $data['rogueListURL'] ?? null; 141 $object->rogueListHash = $data['rogueListHash'] ?? null; 142 143 return $object; 144 } 145 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |