aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-04-14 17:32:25 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2016-04-15 15:07:40 +0200
commit50e20e531ea942d900c50b510c8c13a6a1dd1465 (patch)
treedb641d3406f9930dce8ba6223dd69e79b36f7627 /lib/public
parent5911ce530b003d46348f59e9280b610f684de85a (diff)
downloadnextcloud-server-50e20e531ea942d900c50b510c8c13a6a1dd1465.tar.gz
nextcloud-server-50e20e531ea942d900c50b510c8c13a6a1dd1465.zip
Introduce isReadyForUser and verify in file transfer ownership - fixes #23786
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/encryption/iencryptionmodule.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/public/encryption/iencryptionmodule.php b/lib/public/encryption/iencryptionmodule.php
index df30dd57cee..8d20a1ab57d 100644
--- a/lib/public/encryption/iencryptionmodule.php
+++ b/lib/public/encryption/iencryptionmodule.php
@@ -168,4 +168,16 @@ interface IEncryptionModule {
*/
public function prepareDecryptAll(InputInterface $input, OutputInterface $output, $user = '');
+ /**
+ * Check if the module is ready to be used by that specific user.
+ * In case a module is not ready - because e.g. key pairs have not been generated
+ * upon login this method can return false before any operation starts and might
+ * cause issues during operations.
+ *
+ * @param string $user
+ * @return boolean
+ * @since 9.1.0
+ */
+ public function isReadyForUser($user);
+
}