diff options
author | Morris Jobke <hey@morrisjobke.de> | 2020-07-05 14:31:19 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2020-11-03 00:13:01 +0100 |
commit | dc479aae2d055dafddb250a382eb801a68d42afb (patch) | |
tree | dba601f780b38207e88b406da723467e87cf1411 /lib/public/ICertificateManager.php | |
parent | 65375320fb94fe3b7d0aaaecc9e66b7458ed6c1a (diff) | |
download | nextcloud-server-dc479aae2d055dafddb250a382eb801a68d42afb.tar.gz nextcloud-server-dc479aae2d055dafddb250a382eb801a68d42afb.zip |
Improve CertificateManager to not be user context dependent
* removes the ability for users to import their own certificates (for external storage)
* reliably returns the same certificate bundles system wide (and not depending on the user context and available sessions)
The user specific certificates were broken in some cases anyways, as they are only loaded if the specific user is logged in and thus causing unexpected behavior for background jobs and other non-user triggered code paths.
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/public/ICertificateManager.php')
-rw-r--r-- | lib/public/ICertificateManager.php | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/lib/public/ICertificateManager.php b/lib/public/ICertificateManager.php index 1c7949a89cf..da97dc105d0 100644 --- a/lib/public/ICertificateManager.php +++ b/lib/public/ICertificateManager.php @@ -25,12 +25,12 @@ namespace OCP; /** - * Manage trusted certificates for users + * Manage trusted certificates * @since 8.0.0 */ interface ICertificateManager { /** - * Returns all certificates trusted by the user + * Returns all certificates trusted by the system * * @return \OCP\ICertificate[] * @since 8.0.0 @@ -53,20 +53,18 @@ interface ICertificateManager { public function removeCertificate($name); /** - * Get the path to the certificate bundle for this user + * Get the path to the certificate bundle * - * @param string $uid (optional) user to get the certificate bundle for, use `null` to get the system bundle (since 9.0.0) * @return string * @since 8.0.0 */ - public function getCertificateBundle($uid = ''); + public function getCertificateBundle(); /** - * Get the full local path to the certificate bundle for this user + * Get the full local path to the certificate bundle * - * @param string $uid (optional) user to get the certificate bundle for, use `null` to get the system bundle * @return string * @since 9.0.0 */ - public function getAbsoluteBundlePath($uid = ''); + public function getAbsoluteBundlePath(); } |