Registration.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <?php
  2. /**
  3. * Created by IntelliJ IDEA.
  4. * User: samuel
  5. * Date: 09/12/2016
  6. * Time: 14:59
  7. */
  8. namespace Samyoul\U2F\U2FServer;
  9. class Registration
  10. {
  11. /** The key handle of the registered authenticator */
  12. protected $keyHandle;
  13. /** The public key of the registered authenticator */
  14. protected $publicKey;
  15. /** The attestation certificate of the registered authenticator */
  16. protected $certificate;
  17. /** The counter associated with this registration */
  18. protected $counter = -1;
  19. /**
  20. * @param string $keyHandle
  21. */
  22. public function setKeyHandle($keyHandle)
  23. {
  24. $this->keyHandle = $keyHandle;
  25. }
  26. /**
  27. * @param string $publicKey
  28. */
  29. public function setPublicKey($publicKey)
  30. {
  31. $this->publicKey = $publicKey;
  32. }
  33. /**
  34. * @param string $certificate
  35. */
  36. public function setCertificate($certificate)
  37. {
  38. $this->certificate = $certificate;
  39. }
  40. /**
  41. * @return string
  42. */
  43. public function getKeyHandle()
  44. {
  45. return $this->keyHandle;
  46. }
  47. /**
  48. * @return string
  49. */
  50. public function getPublicKey()
  51. {
  52. return $this->publicKey;
  53. }
  54. /**
  55. * @return string
  56. */
  57. public function getCertificate()
  58. {
  59. return $this->certificate;
  60. }
  61. /**
  62. * @return string
  63. */
  64. public function getCounter()
  65. {
  66. return $this->counter;
  67. }
  68. }