IProvideUserSecretBackend.php 637 B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-License-Identifier: AGPL-3.0-only
  5. */
  6. // use OCP namespace for all classes that are considered public.
  7. // This means that they should be used by apps instead of the internal Nextcloud classes
  8. namespace OCP\Authentication;
  9. /**
  10. * Interface IProvideUserSecretBackend
  11. *
  12. * @since 23.0.0
  13. */
  14. interface IProvideUserSecretBackend {
  15. /**
  16. * Optionally returns a stable per-user secret. This secret is for
  17. * instance used to secure file encryption keys.
  18. * @return string
  19. * @since 23.0.0
  20. */
  21. public function getCurrentUserSecret(): string;
  22. }