Files
Carl Schwan 73d1c05f2e refactor: Use UserSession::completeLogin in OC_User
Allow to get rid of more legacy code and make sure UserSessionTest is
also in psalm

Signed-off-by: Carl Schwan <carlschwan@kde.org>
2026-09-17 18:07:35 +02:00

41 lines
768 B
PHP

<?php
/**
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OCP\Lockdown;
use OCP\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
* @since 36 Use OCP\Authentication\Token\IToken instead of OC namespaced deprecated one
* @return void
*/
public function setToken(IToken $token);
/**
* Check whether or not filesystem access is allowed
*
* @return bool
* @since 9.2
*/
public function canAccessFilesystem();
}