ILockdownManager.php 658 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-License-Identifier: AGPL-3.0-or-later
  5. */
  6. namespace OCP\Lockdown;
  7. use OC\Authentication\Token\IToken;
  8. /**
  9. * @since 9.2
  10. */
  11. interface ILockdownManager {
  12. /**
  13. * Enable the lockdown restrictions
  14. *
  15. * @since 9.2
  16. */
  17. public function enable();
  18. /**
  19. * Set the active token to get the restrictions from and enable the lockdown
  20. *
  21. * @param IToken $token
  22. * @since 9.2
  23. */
  24. public function setToken(IToken $token);
  25. /**
  26. * Check whether or not filesystem access is allowed
  27. *
  28. * @return bool
  29. * @since 9.2
  30. */
  31. public function canAccessFilesystem();
  32. }