InvalidAuth.php 691 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2017-2024 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-FileCopyrightText: 2016 ownCloud GmbH.
  5. * SPDX-License-Identifier: AGPL-3.0-only
  6. */
  7. namespace OCA\Files_External\Lib\Auth;
  8. /**
  9. * Invalid authentication representing an auth mechanism
  10. * that could not be resolved0
  11. */
  12. class InvalidAuth extends AuthMechanism {
  13. /**
  14. * Constructs a new InvalidAuth with the id of the invalid auth
  15. * for display purposes
  16. *
  17. * @param string $invalidId invalid id
  18. */
  19. public function __construct($invalidId) {
  20. $this
  21. ->setIdentifier($invalidId)
  22. ->setScheme(self::SCHEME_NULL)
  23. ->setText('Unknown auth mechanism backend ' . $invalidId)
  24. ;
  25. }
  26. }