Conditions | 3 |
Paths | 3 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 3 |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
17 | 7 | public static function checkAaguidExtension(CertificateDetailsInterface $cert, Aaguid $validAaguid): void |
|
18 | { |
||
19 | 7 | $aaguid = self::getFidoAaguidExtensionValue($cert); |
|
20 | |||
21 | 5 | if ($aaguid === null) { |
|
22 | 2 | return; |
|
23 | } |
||
24 | |||
25 | 3 | if (!$validAaguid->equals($aaguid)) { |
|
26 | 1 | throw new VerificationException('AAGUID in certificate extension does not match the AAGUID in the authenticator data.'); |
|
27 | } |
||
49 |