summaryrefslogtreecommitdiffstats
path: root/lib/public/encryption
diff options
context:
space:
mode:
authorClark Tomlinson <fallen013@gmail.com>2015-02-24 13:05:19 -0500
committerThomas Müller <thomas.mueller@tmit.eu>2015-04-07 13:30:27 +0200
commit39733c8da1c12cc79b7d650edf2ea1074330ee5f (patch)
tree9d072f0ebd7c0a185c5d6afeb345b5d0ae55295e /lib/public/encryption
parent63e7fe608a5f507c5d2b417c45cf26589d091ebc (diff)
downloadnextcloud-server-39733c8da1c12cc79b7d650edf2ea1074330ee5f.tar.gz
nextcloud-server-39733c8da1c12cc79b7d650edf2ea1074330ee5f.zip
Initial commit
Diffstat (limited to 'lib/public/encryption')
-rw-r--r--lib/public/encryption/ikeystorage.php30
1 files changed, 18 insertions, 12 deletions
diff --git a/lib/public/encryption/ikeystorage.php b/lib/public/encryption/ikeystorage.php
index cf94d56e59b..2ab5048709e 100644
--- a/lib/public/encryption/ikeystorage.php
+++ b/lib/public/encryption/ikeystorage.php
@@ -29,59 +29,65 @@ interface IKeyStorage {
* get user specific key
*
* @param string $uid ID if the user for whom we want the key
- * @param string $keyid id of the key
+ * @param string $keyId id of the key
*
* @return mixed key
*/
- public function getUserKey($uid, $keyid);
+ public function getUserKey($uid, $keyId);
/**
* get file specific key
*
* @param string $path path to file
- * @param string $keyid id of the key
+ * @param string $keyId id of the key
*
* @return mixed key
*/
- public function getFileKey($path, $keyid);
+ public function getFileKey($path, $keyId);
/**
* get system-wide encryption keys not related to a specific user,
* e.g something like a key for public link shares
*
- * @param string $keyid id of the key
+ * @param string $keyId id of the key
*
* @return mixed key
*/
- public function getSystemUserKey($uid, $keyid);
+ public function getSystemUserKey($keyId);
/**
* set user specific key
*
* @param string $uid ID if the user for whom we want the key
- * @param string $keyid id of the key
+ * @param string $keyId id of the key
* @param mixed $key
*/
- public function setUserKey($uid, $keyid, $key);
+ public function setUserKey($uid, $keyId, $key);
/**
* set file specific key
*
* @param string $path path to file
- * @param string $keyid id of the key
+ * @param string $keyId id of the key
* @param mixed $key
*/
- public function setFileKey($path, $keyid, $key);
+ public function setFileKey($path, $keyId, $key);
/**
* set system-wide encryption keys not related to a specific user,
* e.g something like a key for public link shares
*
- * @param string $keyid id of the key
+ * @param string $keyId id of the key
* @param mixed $key
*
* @return mixed key
*/
- public function setSystemUserKey($uid, $keyid, $key);
+ public function setSystemUserKey($keyId, $key);
+ /**
+ * Return if encryption is setup and ready encrypt things
+ *
+ * @return bool
+ */
+ public function ready();
}