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