PasswordContext.php 559 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCP\Security;
  8. /**
  9. * Define the context in which a password is used.
  10. * This allows setting a context for password validation and password generation.
  11. *
  12. * @package OCP\Security
  13. * @since 31.0.0
  14. */
  15. enum PasswordContext {
  16. /**
  17. * Password used for an user account
  18. * @since 31.0.0
  19. */
  20. case ACCOUNT;
  21. /**
  22. * Password used for (public) shares
  23. * @since 31.0.0
  24. */
  25. case SHARING;
  26. }