1 | <?php |
||
45 | class Registration implements RegistrationInterface |
||
46 | { |
||
47 | /** |
||
48 | * The key handle of the registered authenticator |
||
49 | * @var string |
||
50 | */ |
||
51 | private $keyHandle; |
||
52 | |||
53 | /** |
||
54 | * The public key of the registered authenticator |
||
55 | * @var string |
||
56 | */ |
||
57 | private $publicKey; |
||
58 | |||
59 | /** |
||
60 | * The attestation certificate of the registered authenticator |
||
61 | * @var string |
||
62 | */ |
||
63 | private $certificate; |
||
64 | |||
65 | /** |
||
66 | * The counter associated with this registration |
||
67 | * @var int |
||
68 | */ |
||
69 | private $counter = -1; |
||
70 | |||
71 | /** |
||
72 | * Registration constructor. |
||
73 | * @param string $keyHandle |
||
74 | * @param string $publicKey |
||
75 | * @param string $certificate |
||
76 | * @param int $counter |
||
77 | */ |
||
78 | public function __construct($keyHandle = null, $publicKey = null, $certificate = null, $counter = -1) |
||
85 | |||
86 | /** |
||
87 | * @return string |
||
88 | */ |
||
89 | public function getKeyHandle() |
||
93 | |||
94 | /** |
||
95 | * @param string $keyHandle |
||
96 | * @return RegistrationInterface |
||
97 | */ |
||
98 | public function setKeyHandle($keyHandle) |
||
103 | |||
104 | /** |
||
105 | * @return string |
||
106 | */ |
||
107 | public function getPublicKey() |
||
111 | |||
112 | /** |
||
113 | * @param string $publicKey |
||
114 | * @return RegistrationInterface |
||
115 | */ |
||
116 | public function setPublicKey($publicKey) |
||
121 | |||
122 | /** |
||
123 | * @return string |
||
124 | */ |
||
125 | public function getCertificate() |
||
129 | |||
130 | /** |
||
131 | * @param string $certificate |
||
132 | * @return RegistrationInterface |
||
133 | */ |
||
134 | public function setCertificate($certificate) |
||
139 | |||
140 | /** |
||
141 | * @return int |
||
142 | */ |
||
143 | public function getCounter() |
||
147 | |||
148 | /** |
||
149 | * @param int $counter |
||
150 | * @return RegistrationInterface |
||
151 | */ |
||
152 | public function setCounter($counter) |
||
157 | } |