summaryrefslogtreecommitdiffstats
path: root/lib/public/ICertificateManager.php
diff options
context:
space:
mode:
authorJ0WI <J0WI@users.noreply.github.com>2021-04-19 15:50:30 +0200
committerJ0WI <J0WI@users.noreply.github.com>2021-04-19 17:31:12 +0200
commitca7b37ce5a5c68ea4a105377754005a772c5deaa (patch)
tree2df753ec57b8f5b51324d2e0bc4a361179dc2967 /lib/public/ICertificateManager.php
parent9a69b8839389f133db55a41e1c2ba4435fd50c19 (diff)
downloadnextcloud-server-ca7b37ce5a5c68ea4a105377754005a772c5deaa.tar.gz
nextcloud-server-ca7b37ce5a5c68ea4a105377754005a772c5deaa.zip
Make Security module strict
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
Diffstat (limited to 'lib/public/ICertificateManager.php')
-rw-r--r--lib/public/ICertificateManager.php14
1 files changed, 9 insertions, 5 deletions
diff --git a/lib/public/ICertificateManager.php b/lib/public/ICertificateManager.php
index da97dc105d0..2014ec3ec06 100644
--- a/lib/public/ICertificateManager.php
+++ b/lib/public/ICertificateManager.php
@@ -1,4 +1,7 @@
<?php
+
+declare(strict_types=1);
+
/**
* @copyright Copyright (c) 2016, ownCloud, Inc.
*
@@ -35,7 +38,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 +47,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 +62,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 +70,5 @@ interface ICertificateManager {
* @return string
* @since 9.0.0
*/
- public function getAbsoluteBundlePath();
+ public function getAbsoluteBundlePath(): string;
}