2016-08-01 12:27:07 -04:00
|
|
|
<?php
|
|
|
|
|
/**
|
2024-05-23 03:26:56 -04:00
|
|
|
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2016-08-01 12:27:07 -04:00
|
|
|
*/
|
|
|
|
|
namespace OCP\Lockdown;
|
|
|
|
|
|
|
|
|
|
use OC\Authentication\Token\IToken;
|
|
|
|
|
|
2016-10-19 09:11:58 -04:00
|
|
|
/**
|
|
|
|
|
* @since 9.2
|
|
|
|
|
*/
|
2016-08-01 12:27:07 -04:00
|
|
|
interface ILockdownManager {
|
2016-10-19 09:11:58 -04:00
|
|
|
/**
|
|
|
|
|
* Enable the lockdown restrictions
|
|
|
|
|
*
|
|
|
|
|
* @since 9.2
|
|
|
|
|
*/
|
2016-08-01 12:27:07 -04:00
|
|
|
public function enable();
|
|
|
|
|
|
2016-10-19 09:11:58 -04:00
|
|
|
/**
|
|
|
|
|
* Set the active token to get the restrictions from and enable the lockdown
|
|
|
|
|
*
|
|
|
|
|
* @param IToken $token
|
|
|
|
|
* @since 9.2
|
|
|
|
|
*/
|
2016-08-01 12:27:07 -04:00
|
|
|
public function setToken(IToken $token);
|
|
|
|
|
|
2016-10-19 09:11:58 -04:00
|
|
|
/**
|
|
|
|
|
* Check whether or not filesystem access is allowed
|
|
|
|
|
*
|
|
|
|
|
* @return bool
|
|
|
|
|
* @since 9.2
|
|
|
|
|
*/
|
2016-08-01 12:27:07 -04:00
|
|
|
public function canAccessFilesystem();
|
|
|
|
|
}
|