Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| Xmpp | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
| getFriendlyName | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | /** |
| 5 | * SPDX-FileCopyrightText: 2025 LibreCode coop and contributors |
| 6 | * SPDX-License-Identifier: AGPL-3.0-or-later |
| 7 | */ |
| 8 | |
| 9 | namespace OCA\Libresign\Service\IdentifyMethod; |
| 10 | |
| 11 | use OCA\Libresign\Service\IdentifyMethod\SignatureMethod\ISignatureMethod; |
| 12 | |
| 13 | class Xmpp extends TwofactorGateway { |
| 14 | public array $availableSignatureMethods = [ |
| 15 | ISignatureMethod::SIGNATURE_METHOD_CLICK_TO_SIGN, |
| 16 | ISignatureMethod::SIGNATURE_METHOD_XMPP, |
| 17 | ]; |
| 18 | |
| 19 | #[\Override] |
| 20 | public function getFriendlyName(): string { |
| 21 | // TRANSLATORS Name of possible authenticator method. This signalize that the signer could be identified by XMPP |
| 22 | return $this->identifyService->getL10n()->t('XMPP'); |
| 23 | } |
| 24 | } |