aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/ICertificateManager.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/ICertificateManager.php')
-rw-r--r--lib/public/ICertificateManager.php37
1 files changed, 11 insertions, 26 deletions
diff --git a/lib/public/ICertificateManager.php b/lib/public/ICertificateManager.php
index da97dc105d0..2f2304b6f55 100644
--- a/lib/public/ICertificateManager.php
+++ b/lib/public/ICertificateManager.php
@@ -1,27 +1,11 @@
<?php
+
+declare(strict_types=1);
/**
- * @copyright Copyright (c) 2016, ownCloud, Inc.
- *
- * @author Lukas Reschke <lukas@statuscode.ch>
- * @author Morris Jobke <hey@morrisjobke.de>
- * @author Robin Appelman <robin@icewind.nl>
- *
- * @license AGPL-3.0
- *
- * This code is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License, version 3,
- * as published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License, version 3,
- * along with this program. If not, see <http://www.gnu.org/licenses/>
- *
+ * SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-FileCopyrightText: 2016 ownCloud, Inc.
+ * SPDX-License-Identifier: AGPL-3.0-only
*/
-
namespace OCP;
/**
@@ -35,7 +19,7 @@ interface ICertificateManager {
* @return \OCP\ICertificate[]
* @since 8.0.0
*/
- public function listCertificates();
+ public function listCertificates(): array;
/**
* @param string $certificate the certificate data
@@ -44,13 +28,14 @@ interface ICertificateManager {
* @throws \Exception If the certificate could not get added
* @since 8.0.0 - since 8.1.0 throws exception instead of returning false
*/
- public function addCertificate($certificate, $name);
+ public function addCertificate(string $certificate, string $name): \OCP\ICertificate;
/**
* @param string $name
+ * @return bool
* @since 8.0.0
*/
- public function removeCertificate($name);
+ public function removeCertificate(string $name): bool;
/**
* Get the path to the certificate bundle
@@ -58,7 +43,7 @@ interface ICertificateManager {
* @return string
* @since 8.0.0
*/
- public function getCertificateBundle();
+ public function getCertificateBundle(): string;
/**
* Get the full local path to the certificate bundle
@@ -66,5 +51,5 @@ interface ICertificateManager {
* @return string
* @since 9.0.0
*/
- public function getAbsoluteBundlePath();
+ public function getAbsoluteBundlePath(): string;
}