Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
31 | public function isValid(AttestationStatement $attestationStatement, AuthenticatorData $authenticatorData, CollectedClientData $collectedClientData): bool |
||
32 | { |
||
33 | $fmt = $attestationStatement->getFmt(); |
||
34 | if (!array_key_exists($fmt, $this->attestationStatementSupports)) { |
||
35 | throw new \InvalidArgumentException(sprintf('The attestation format "%s" is not supported.', $fmt)); |
||
36 | } |
||
37 | |||
38 | return $this->attestationStatementSupports[$fmt]->isValid($attestationStatement, $authenticatorData, $collectedClientData); |
||
39 | } |
||
41 |