keyHandle = $data->keyHandle; $this->publicKey = $data->publicKey; $this->certificate = $data->certificate; $this->counter = $data->counter; } public function getKeyHandle() { return $this->keyHandle; } public function setKeyHandle($keyHandle): void { $this->keyHandle = $keyHandle; } public function getPublicKey() { return $this->publicKey; } public function setPublicKey($publicKey): void { $this->publicKey = $publicKey; } public function getCertificate() { return $this->certificate; } public function setCertificate($certificate): void { $this->certificate = $certificate; } public function getCounter() { return $this->counter; } public function setCounter($counter): void { $this->counter = $counter; } public function getName() { return $this->name; } public function setName($name): void { $this->name = $name; } /** * Gets the user, this U2F key belongs to. * * @return User */ public function getUser(): User { return $this->user; } /** * The primary key ID of this key. * * @return int */ public function getID(): int { return $this->id; } /** * Sets the user this U2F key belongs to. * * @return $this */ public function setUser(TwoFactorInterface $new_user): self { $this->user = $new_user; return $this; } }