mirror of
https://github.com/nextcloud/server.git
synced 2024-12-29 00:18:42 +00:00
dae7c159f7
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
37 lines
658 B
PHP
37 lines
658 B
PHP
<?php
|
|
/**
|
|
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
namespace OCP\Lockdown;
|
|
|
|
use OC\Authentication\Token\IToken;
|
|
|
|
/**
|
|
* @since 9.2
|
|
*/
|
|
interface ILockdownManager {
|
|
/**
|
|
* Enable the lockdown restrictions
|
|
*
|
|
* @since 9.2
|
|
*/
|
|
public function enable();
|
|
|
|
/**
|
|
* Set the active token to get the restrictions from and enable the lockdown
|
|
*
|
|
* @param IToken $token
|
|
* @since 9.2
|
|
*/
|
|
public function setToken(IToken $token);
|
|
|
|
/**
|
|
* Check whether or not filesystem access is allowed
|
|
*
|
|
* @return bool
|
|
* @since 9.2
|
|
*/
|
|
public function canAccessFilesystem();
|
|
}
|