示例#1
0
 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];
 }
示例#2
0
 public function validateCounter($hardware_value)
 {
     parent::validateCounter($hardware_value);
     $this->saveCounter();
 }