@@ -169,9 +169,9 @@ |
||
169 | 169 | } |
170 | 170 | |
171 | 171 | /** |
172 | - * {@inheritdoc} |
|
173 | - * @return mixed |
|
174 | - */ |
|
172 | + * {@inheritdoc} |
|
173 | + * @return mixed |
|
174 | + */ |
|
175 | 175 | public function jsonSerialize() |
176 | 176 | { |
177 | 177 | return get_object_vars($this); |
@@ -11,8 +11,8 @@ |
||
11 | 11 | class None extends BaseFormat |
12 | 12 | { |
13 | 13 | /** |
14 | - * {@inheritdoc} |
|
15 | - */ |
|
14 | + * {@inheritdoc} |
|
15 | + */ |
|
16 | 16 | public function validateAttestation(string $clientData): bool |
17 | 17 | { |
18 | 18 | return true; |
@@ -79,8 +79,8 @@ discard block |
||
79 | 79 | } |
80 | 80 | |
81 | 81 | /** |
82 | - * {@inheritdoc} |
|
83 | - */ |
|
82 | + * {@inheritdoc} |
|
83 | + */ |
|
84 | 84 | public function getCertificatePem(): string |
85 | 85 | { |
86 | 86 | $pem = '-----BEGIN CERTIFICATE-----' . "\n"; |
@@ -91,8 +91,8 @@ discard block |
||
91 | 91 | } |
92 | 92 | |
93 | 93 | /** |
94 | - * {@inheritdoc} |
|
95 | - */ |
|
94 | + * {@inheritdoc} |
|
95 | + */ |
|
96 | 96 | public function validateAttestation(string $clientData): bool |
97 | 97 | { |
98 | 98 | $publicKey = openssl_pkey_get_public($this->getCertificatePem()); |
@@ -129,8 +129,8 @@ discard block |
||
129 | 129 | } |
130 | 130 | |
131 | 131 | /** |
132 | - * {@inheritdoc} |
|
133 | - */ |
|
132 | + * {@inheritdoc} |
|
133 | + */ |
|
134 | 134 | public function validateRootCertificate(array $rootCertificates): bool |
135 | 135 | { |
136 | 136 | $chain = $this->createX5cChainFile(); |
@@ -88,8 +88,8 @@ discard block |
||
88 | 88 | } |
89 | 89 | |
90 | 90 | /** |
91 | - * {@inheritdoc} |
|
92 | - */ |
|
91 | + * {@inheritdoc} |
|
92 | + */ |
|
93 | 93 | public function getCertificatePem(): ?string |
94 | 94 | { |
95 | 95 | if (empty($this->x5c)) { |
@@ -100,8 +100,8 @@ discard block |
||
100 | 100 | } |
101 | 101 | |
102 | 102 | /** |
103 | - * {@inheritdoc} |
|
104 | - */ |
|
103 | + * {@inheritdoc} |
|
104 | + */ |
|
105 | 105 | public function validateAttestation(string $clientData): bool |
106 | 106 | { |
107 | 107 | if (! empty($this->x5c)) { |
@@ -112,8 +112,8 @@ discard block |
||
112 | 112 | } |
113 | 113 | |
114 | 114 | /** |
115 | - * {@inheritdoc} |
|
116 | - */ |
|
115 | + * {@inheritdoc} |
|
116 | + */ |
|
117 | 117 | public function validateRootCertificate(array $rootCertificates): bool |
118 | 118 | { |
119 | 119 | if (empty($this->x5c)) { |
@@ -132,8 +132,8 @@ discard block |
||
132 | 132 | } |
133 | 133 | |
134 | 134 | /** |
135 | - * {@inheritdoc} |
|
136 | - */ |
|
135 | + * {@inheritdoc} |
|
136 | + */ |
|
137 | 137 | public function getCertificatePem(): ?string |
138 | 138 | { |
139 | 139 | if (empty($this->x5c)) { |
@@ -144,16 +144,16 @@ discard block |
||
144 | 144 | } |
145 | 145 | |
146 | 146 | /** |
147 | - * {@inheritdoc} |
|
148 | - */ |
|
147 | + * {@inheritdoc} |
|
148 | + */ |
|
149 | 149 | public function validateAttestation(string $clientData): bool |
150 | 150 | { |
151 | 151 | return $this->validateOverX5C($clientData); |
152 | 152 | } |
153 | 153 | |
154 | 154 | /** |
155 | - * {@inheritdoc} |
|
156 | - */ |
|
155 | + * {@inheritdoc} |
|
156 | + */ |
|
157 | 157 | public function validateRootCertificate(array $rootCertificates): bool |
158 | 158 | { |
159 | 159 | if (empty($this->x5c)) { |
@@ -206,7 +206,7 @@ discard block |
||
206 | 206 | $dataToVerify = $this->authenticatorData->getBinary(); |
207 | 207 | $dataToVerify .= $clientData; |
208 | 208 | |
209 | - // Verify that magic is set to TPM_GENERATED_VALUE. |
|
209 | + // Verify that magic is set to TPM_GENERATED_VALUE. |
|
210 | 210 | if ($this->certInfo->getBytes(0, 4) !== self::TPM_GENERATED_VALUE) { |
211 | 211 | throw new WebauthnException('TPM magic value not the same TPM_GENERATED_VALUE'); |
212 | 212 | } |
@@ -332,9 +332,9 @@ discard block |
||
332 | 332 | } |
333 | 333 | |
334 | 334 | /** |
335 | - * Return the binary string |
|
336 | - * @return string |
|
337 | - */ |
|
335 | + * Return the binary string |
|
336 | + * @return string |
|
337 | + */ |
|
338 | 338 | public function getBinaryString(): string |
339 | 339 | { |
340 | 340 | return $this->data; |
@@ -361,9 +361,9 @@ discard block |
||
361 | 361 | } |
362 | 362 | |
363 | 363 | /** |
364 | - * {@inheritdoc} |
|
365 | - * @return mixed |
|
366 | - */ |
|
364 | + * {@inheritdoc} |
|
365 | + * @return mixed |
|
366 | + */ |
|
367 | 367 | public function jsonSerialize() |
368 | 368 | { |
369 | 369 | if ($this->useBase64UrlEncoding) { |
@@ -377,18 +377,18 @@ discard block |
||
377 | 377 | } |
378 | 378 | |
379 | 379 | /** |
380 | - * {@inheritdoc} |
|
381 | - * @return string|null |
|
382 | - */ |
|
380 | + * {@inheritdoc} |
|
381 | + * @return string|null |
|
382 | + */ |
|
383 | 383 | public function serialize(): ?string |
384 | 384 | { |
385 | 385 | return serialize($this->data); |
386 | 386 | } |
387 | 387 | |
388 | 388 | /** |
389 | - * {@inheritdoc} |
|
390 | - * $param string $data |
|
391 | - */ |
|
389 | + * {@inheritdoc} |
|
390 | + * $param string $data |
|
391 | + */ |
|
392 | 392 | public function unserialize($data): void |
393 | 393 | { |
394 | 394 | $value = unserialize($data); |
@@ -169,9 +169,9 @@ |
||
169 | 169 | } |
170 | 170 | |
171 | 171 | /** |
172 | - * {@inheritdoc} |
|
173 | - * @return mixed |
|
174 | - */ |
|
172 | + * {@inheritdoc} |
|
173 | + * @return mixed |
|
174 | + */ |
|
175 | 175 | public function jsonSerialize() |
176 | 176 | { |
177 | 177 | return get_object_vars($this); |
@@ -169,9 +169,9 @@ |
||
169 | 169 | } |
170 | 170 | |
171 | 171 | /** |
172 | - * {@inheritdoc} |
|
173 | - * @return mixed |
|
174 | - */ |
|
172 | + * {@inheritdoc} |
|
173 | + * @return mixed |
|
174 | + */ |
|
175 | 175 | public function jsonSerialize() |
176 | 176 | { |
177 | 177 | return get_object_vars($this); |
@@ -169,9 +169,9 @@ |
||
169 | 169 | } |
170 | 170 | |
171 | 171 | /** |
172 | - * {@inheritdoc} |
|
173 | - * @return mixed |
|
174 | - */ |
|
172 | + * {@inheritdoc} |
|
173 | + * @return mixed |
|
174 | + */ |
|
175 | 175 | public function jsonSerialize() |
176 | 176 | { |
177 | 177 | return get_object_vars($this); |