Add missing import for the exception

This commit is contained in:
Joas Schilling 2015-05-18 13:40:23 +02:00
parent 4444db61b7
commit 30d165ebf2
2 changed files with 3 additions and 0 deletions

View File

@ -25,6 +25,7 @@
namespace OCA\Encryption\Crypto; namespace OCA\Encryption\Crypto;
use OC\Encryption\Exceptions\DecryptionFailedException;
use OCA\Encryption\Exceptions\PublicKeyMissingException; use OCA\Encryption\Exceptions\PublicKeyMissingException;
use OCA\Encryption\Util; use OCA\Encryption\Util;
use OCP\Encryption\IEncryptionModule; use OCP\Encryption\IEncryptionModule;
@ -274,6 +275,7 @@ class Encryption implements IEncryptionModule {
* *
* @param string $data you want to decrypt * @param string $data you want to decrypt
* @return mixed decrypted data * @return mixed decrypted data
* @throws DecryptionFailedException
*/ */
public function decrypt($data) { public function decrypt($data) {
if (empty($this->fileKey)) { if (empty($this->fileKey)) {

View File

@ -231,6 +231,7 @@ class EncryptionTest extends TestCase {
); );
} }
/**
* by default the encryption module should encrypt regular files, files in * by default the encryption module should encrypt regular files, files in
* files_versions and files in files_trashbin * files_versions and files in files_trashbin
* *