libresign/lib/Handler/CertificateEngine/NoneHandler.php
Vitor Mattos 45cd3c374d
chore: Add SPDX header
Signed-off-by: Vitor Mattos <vitor@php.rio>
2024-05-14 12:32:04 -03:00

30 lines
617 B
PHP

<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2020-2024 LibreCode coop and contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OCA\Libresign\Handler\CertificateEngine;
class NoneHandler extends AEngineHandler implements IEngineHandler {
public function generateRootCert(
string $commonName,
array $names = [],
): string {
return '';
}
public function generateCertificate(string $certificate = '', string $privateKey = ''): string {
return '';
}
public function isSetupOk(): bool {
return true;
}
public function configureCheck(): array {
return [];
}
}