- md5
- 4354af24a21480810960bc864c36dcc0
- sha1
- 5d9a423203de7ec301ce2596a4cecdcf2e5eae46
- sha256
- 72909fe128fccb873f0bea46b47b63d8276e63b8381ab4470153a8d2b2993489
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
<?php
declare(strict_types=1);
/*
* The MIT License (MIT)
*
* Copyright (c) 2014-2019 Spomky-Labs
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
namespace Webauthn\MetadataService;
use Assert\Assertion;
class MetadataTOCPayloadEntry
{
/**
* @var string|null
*/
private $aaid;
/**
* @var string|null
*/
private $aaguid;
/**
* @var string[]
*/
private $attestationCertificateKeyIdentifiers = [];
/**
* @var string|null
*/
private $hash;
/**
* @var string|null
*/
private $url;
/**
* @var BiometricStatusReport[]
*/
private $biometricStatusReports = [];
/**
* @var StatusReport[]
*/
private $statusReports = [];
/**
* @var string
*/
private $timeOfLastStatusChange;
/**
* @var string
*/
private $rogueListURL;
/**
* @var string
*/
private $rogueListHash;
public function getAaid(): ?string
{
return $this->aaid;
}
public function getAaguid(): ?string
{
return $this->aaguid;
}
public function getAttestationCertificateKeyIdentifiers(): array
{
return $this->attestationCertificateKeyIdentifiers;
}
public function getHash(): ?string
{
return $this->hash;
}
public function getUrl(): ?string
{
return $this->url;
}
public function getBiometricStatusReports(): array
{
return $this->biometricStatusReports;
}
/**
* @return StatusReport[]
*/
public function getStatusReports(): array
{
return $this->statusReports;
}
public function getTimeOfLastStatusChange(): string
{
return $this->timeOfLastStatusChange;
}
public function getRogueListURL(): string
{
return $this->rogueListURL;
}
public function getRogueListHash(): string
{
return $this->rogueListHash;
}
public static function createFromArray(array $data): self
{
$object = new self();
$object->aaid = $data['aaid'] ?? null;
$object->aaguid = $data['aaguid'] ?? null;
$object->attestationCertificateKeyIdentifiers = $data['attestationCertificateKeyIdentifiers'] ?? null;
$object->hash = $data['hash'] ?? null;
$object->url = $data['url'] ?? null;
$object->biometricStatusReports = isset($data['biometricStatusReports']) ? BiometricStatusReport::createFromArray($data['biometricStatusReports']) : null;
$object->statusReports = [];
if (isset($data['statusReports'])) {
Assertion::isArray($data['statusReports'], 'Invalid status report');
foreach ($data['statusReports'] as $k => $statusReport) {
$object->statusReports[$k] = StatusReport::createFromArray($statusReport);
}
}
$object->timeOfLastStatusChange = $data['timeOfLastStatusChange'] ?? null;
$object->rogueListURL = $data['rogueListURL'] ?? null;
$object->rogueListHash = $data['rogueListHash'] ?? null;
return $object;
}
}
The same content is in 131 releases, Joomla 4.0.0-beta to 4.4.14. See them all, or every version of this file.