Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2016-08-01 19:27:07 +0300
committerRobin Appelman <robin@icewind.nl>2016-11-16 17:24:23 +0300
commitb56f2c9ed01332bbeaee73599a0ea166c62d01e8 (patch)
tree0dee1604c0890f25f87dcdb3d9d1a17f5b95460e /lib/public
parentd03446a0ae25a88b68df2bc2bf8d0c49e5473ea0 (diff)
basic lockdown logic
Signed-off-by: Robin Appelman <icewind@owncloud.com>
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/Lockdown/ILockdownManager.php32
1 files changed, 32 insertions, 0 deletions
diff --git a/lib/public/Lockdown/ILockdownManager.php b/lib/public/Lockdown/ILockdownManager.php
new file mode 100644
index 00000000000..0b0c525501e
--- /dev/null
+++ b/lib/public/Lockdown/ILockdownManager.php
@@ -0,0 +1,32 @@
+<?php
+
+/**
+ * @copyright Copyright (c) 2016, Robin Appelman <robin@icewind.nl>
+ *
+ * This code is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License, version 3,
+ * as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License, version 3,
+ * along with this program. If not, see <http://www.gnu.org/licenses/>
+ *
+ */
+
+namespace OCP\Lockdown;
+
+use OC\Authentication\Token\IToken;
+
+interface ILockdownManager {
+ public function enable();
+
+ public function setToken(IToken $token);
+
+ public function canAccessFilesystem();
+
+ public function canAccessApp($app);
+}