for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace MadWizard\WebAuthn\Attestation\Android;
use MadWizard\WebAuthn\Pki\X509Certificate;
final class SafetyNetResponse implements SafetyNetResponseInterface
{
/**
* @var string
*/
private $nonce;
* @var X509Certificate[]
private $x5c;
* @var bool
private $ctsProfileMatch;
* @var int|float
private $timestampMs;
* @param int|float $timestampMs
public function __construct(string $nonce, array $x5c, bool $ctsProfileMatch, $timestampMs)
$this->nonce = $nonce;
$this->x5c = $x5c;
$this->ctsProfileMatch = $ctsProfileMatch;
$this->timestampMs = $timestampMs;
}
public function getNonce(): string
return $this->nonce;
* @return X509Certificate[]
public function getCertificateChain(): array
return $this->x5c;
public function isCtsProfileMatch(): bool
return $this->ctsProfileMatch;
public function getTimestampMs()
return $this->timestampMs;