[ 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\TrustPath; 15 16 use Assert\Assertion; 17 18 final class EcdaaKeyIdTrustPath implements TrustPath 19 { 20 /** 21 * @var string 22 */ 23 private $ecdaaKeyId; 24 25 public function __construct(string $ecdaaKeyId) 26 { 27 $this->ecdaaKeyId = $ecdaaKeyId; 28 } 29 30 public function getEcdaaKeyId(): string 31 { 32 return $this->ecdaaKeyId; 33 } 34 35 public function jsonSerialize(): array 36 { 37 return [ 38 'type' => self::class, 39 'ecdaaKeyId' => $this->ecdaaKeyId, 40 ]; 41 } 42 43 public static function createFromArray(array $data): TrustPath 44 { 45 Assertion::keyExists($data, 'ecdaaKeyId', 'The trust path type is invalid'); 46 47 return new EcdaaKeyIdTrustPath($data['ecdaaKeyId']); 48 } 49 }
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 |