Total Complexity | 3 |
Total Lines | 16 |
Duplicated Lines | 0 % |
Coverage | 87.5% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | final class NoneAttestationVerifier implements AttestationVerifierInterface |
||
15 | { |
||
16 | 1 | public function verify(AttestationStatementInterface $attStmt, AuthenticatorData $authenticatorData, string $clientDataHash): VerificationResult |
|
17 | { |
||
18 | 1 | if (!($attStmt instanceof NoneAttestationStatement)) { |
|
19 | throw new VerificationException('Expecting NoneAttestationStatement.'); |
||
20 | } |
||
21 | 1 | return new VerificationResult(AttestationType::NONE, new EmptyTrustPath()); |
|
22 | } |
||
23 | |||
24 | 19 | public function getSupportedFormat(): AttestationFormatInterface |
|
30 | ); |
||
31 | } |
||
33 |