[ 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 class VerificationMethodDescriptor 17 { 18 public const USER_VERIFY_PRESENCE = 0x00000001; 19 public const USER_VERIFY_FINGERPRINT = 0x00000002; 20 public const USER_VERIFY_PASSCODE = 0x00000004; 21 public const USER_VERIFY_VOICEPRINT = 0x00000008; 22 public const USER_VERIFY_FACEPRINT = 0x00000010; 23 public const USER_VERIFY_LOCATION = 0x00000020; 24 public const USER_VERIFY_EYEPRINT = 0x00000040; 25 public const USER_VERIFY_PATTERN = 0x00000080; 26 public const USER_VERIFY_HANDPRINT = 0x00000100; 27 public const USER_VERIFY_NONE = 0x00000200; 28 public const USER_VERIFY_ALL = 0x00000400; 29 30 /** 31 * @var int 32 */ 33 private $userVerification; 34 35 /** 36 * @var CodeAccuracyDescriptor|null 37 */ 38 private $caDesc; 39 40 /** 41 * @var BiometricAccuracyDescriptor|null 42 */ 43 private $baDesc; 44 45 /** 46 * @var PatternAccuracyDescriptor|null 47 */ 48 private $paDesc; 49 50 public function getUserVerification(): int 51 { 52 return $this->userVerification; 53 } 54 55 public function getCaDesc(): ?CodeAccuracyDescriptor 56 { 57 return $this->caDesc; 58 } 59 60 public function getBaDesc(): ?BiometricAccuracyDescriptor 61 { 62 return $this->baDesc; 63 } 64 65 public function getPaDesc(): ?PatternAccuracyDescriptor 66 { 67 return $this->paDesc; 68 } 69 70 public static function createFromArray(array $data): self 71 { 72 $object = new self(); 73 $object->userVerification = $data['userVerification'] ?? null; 74 $object->caDesc = isset($data['caDesc']) ? CodeAccuracyDescriptor::createFromArray($data['caDesc']) : null; 75 $object->baDesc = isset($data['baDesc']) ? BiometricAccuracyDescriptor::createFromArray($data['baDesc']) : null; 76 $object->paDesc = isset($data['paDesc']) ? PatternAccuracyDescriptor::createFromArray($data['paDesc']) : null; 77 78 return $object; 79 } 80 }
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 |