[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/vendor/web-auth/metadata-service/src/ -> EcdaaTrustAnchor.php (source)

   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  class EcdaaTrustAnchor
  17  {
  18      /**
  19       * @var string
  20       */
  21      private $X;
  22  
  23      /**
  24       * @var string
  25       */
  26      private $Y;
  27  
  28      /**
  29       * @var string
  30       */
  31      private $c;
  32  
  33      /**
  34       * @var string
  35       */
  36      private $sx;
  37  
  38      /**
  39       * @var string
  40       */
  41      private $sy;
  42  
  43      /**
  44       * @var string
  45       */
  46      private $G1Curve;
  47  
  48      public function getX(): string
  49      {
  50          return $this->X;
  51      }
  52  
  53      public function getY(): string
  54      {
  55          return $this->Y;
  56      }
  57  
  58      public function getC(): string
  59      {
  60          return $this->c;
  61      }
  62  
  63      public function getSx(): string
  64      {
  65          return $this->sx;
  66      }
  67  
  68      public function getSy(): string
  69      {
  70          return $this->sy;
  71      }
  72  
  73      public function getG1Curve(): string
  74      {
  75          return $this->G1Curve;
  76      }
  77  
  78      public static function createFromArray(array $data): self
  79      {
  80          $object = new self();
  81          $object->X = $data['X'] ?? null;
  82          $object->Y = $data['Y'] ?? null;
  83          $object->c = $c['data'] ?? null;
  84          $object->sx = $data['sx'] ?? null;
  85          $object->sy = $data['sy'] ?? null;
  86          $object->G1Curve = $data['G1Curve'] ?? null;
  87  
  88          return $object;
  89      }
  90  }


Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer