| Total Complexity | 2 |
| Total Lines | 58 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | final class AttestationType |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * In this case, no attestation information is available. |
||
| 9 | */ |
||
| 10 | public const NONE = 'None'; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * The authenticator’s attestation key pair is specific to an authenticator model. |
||
| 14 | */ |
||
| 15 | public const BASIC = 'Basic'; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * The Authenticator does not have any specific attestation key. Instead it uses the credential private key to |
||
| 19 | * create the attestation signature. Authenticators without meaningful protection measures for an attestation |
||
| 20 | * private key typically use this attestation type. |
||
| 21 | */ |
||
| 22 | public const SELF = 'Self'; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * The authenticator is based on a Trusted Platform Module (TPM) and holds an authenticator-specific |
||
| 26 | * "endorsement key" (EK). |
||
| 27 | */ |
||
| 28 | public const ATT_CA = 'AttCA'; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @deprecated Will be removed in WebAuthn spec v2 |
||
| 32 | * The Authenticator receives direct anonymous attestation (DAA) credentials from a single DAA-Issuer. |
||
| 33 | */ |
||
| 34 | public const ECDAA = 'ECDAA'; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * The authenticator works with a cloud-operated Anonymization CA owned by its manufacturer to dynamically generate |
||
| 38 | * per-credential attestation certificates on the CA such that no identification information of an individual |
||
| 39 | * authenticator will be revealed to Relying Parties in the attestation statement. |
||
| 40 | */ |
||
| 41 | public const ANON_CA = 'AnonCA'; |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @codeCoverageIgnore |
||
| 45 | */ |
||
| 46 | private function __construct() |
||
| 47 | { |
||
| 48 | } |
||
| 49 | |||
| 50 | 27 | public static function isValidType(string $type): bool |
|
| 63 | ); |
||
| 64 | } |
||
| 66 |
This class constant has been deprecated. The supplier of the class has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the constant will be removed from the class and what other constant to use instead.