Debian Codegraph @

lib/3rdParty/composer/web-auth/webauthn-lib/src/AuthenticatorAssertionResponse.php

raw symbols SCIP
1 <?php
2
3 declare(strict_types=1);
4
5 namespace Webauthn;
6
7 use Webauthn\AttestationStatement\AttestationObject;
8
9 /**
10 * @see https://www.w3.org/TR/webauthn/#authenticatorassertionresponse
11 */
12 class AuthenticatorAssertionResponse extends AuthenticatorResponse
13 {
14 public function __construct(
15 CollectedClientData $clientDataJSON,
16 public readonly AuthenticatorData $authenticatorData,
17 public readonly string $signature,
18 public readonly ?string $userHandle,
19 public readonly null|AttestationObject $attestationObject = null,
20 ) {
21 parent::__construct($clientDataJSON);
22 }
23
24 public static function create(
25 CollectedClientData $clientDataJSON,
26 AuthenticatorData $authenticatorData,
27 string $signature,
28 ?string $userHandle = null,
29 null|AttestationObject $attestationObject = null,
30 ): self {
31 return new self($clientDataJSON, $authenticatorData, $signature, $userHandle, $attestationObject);
32 }
33 }