private function parseRegistration($json) { $vector = json_decode($json); $reg = new u2flib_server\Registration(); $reg->setKeyHandle($vector->keyHandle)->setPublicKey($vector->publicKey)->setCertificate($vector->certificate)->setCounter($vector->counter); return [$reg]; }
public function validateCounter($hardware_value) { parent::validateCounter($hardware_value); $this->saveCounter(); }