diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2015-03-27 11:46:32 +0100 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2015-03-27 11:51:53 +0100 |
commit | b5fad75e579b9aeada87e63b4e7866956e1e20ff (patch) | |
tree | 7b607e0f06ea595ae02e66900ecd7b2ee98ee121 /lib/public | |
parent | c6be1ba8d35ceb398fdbd0bd7b9e4491119092a0 (diff) | |
download | nextcloud-server-b5fad75e579b9aeada87e63b4e7866956e1e20ff.tar.gz nextcloud-server-b5fad75e579b9aeada87e63b4e7866956e1e20ff.zip |
add deleteAllFileKeys to public interface and add "uid" as parameter for the
update call
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/encryption/iencryptionmodule.php | 3 | ||||
-rw-r--r-- | lib/public/encryption/keys/istorage.php | 8 |
2 files changed, 10 insertions, 1 deletions
diff --git a/lib/public/encryption/iencryptionmodule.php b/lib/public/encryption/iencryptionmodule.php index 2527e35e639..7265fee1259 100644 --- a/lib/public/encryption/iencryptionmodule.php +++ b/lib/public/encryption/iencryptionmodule.php @@ -84,10 +84,11 @@ interface IEncryptionModule { * update encrypted file, e.g. give additional users access to the file * * @param string $path path to the file which should be updated + * @param string $uid of the user who performs the operation * @param array $accessList who has access to the file contains the key 'users' and 'public' * @return boolean */ - public function update($path, $accessList); + public function update($path, $uid, $accessList); /** * should the file be encrypted or not diff --git a/lib/public/encryption/keys/istorage.php b/lib/public/encryption/keys/istorage.php index 24f6efd6e51..4c2b01f4ad0 100644 --- a/lib/public/encryption/keys/istorage.php +++ b/lib/public/encryption/keys/istorage.php @@ -105,6 +105,14 @@ interface IStorage { public function deleteFileKey($path, $keyId); /** + * delete all file keys for a given file + * + * @param string $path to the file + * @return boolean + */ + public function deleteAllFileKeys($path); + + /** * delete system-wide encryption keys not related to a specific user, * e.g something like a key for public link shares * |