aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/Lockdown/ILockdownManager.php
blob: 4ae846ae8da82d497b7f559919987dbf44b63bc8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?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();
}