1
0

NullMechanism.php 476 B

12345678910111213141516171819202122
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2019-2024 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-FileCopyrightText: 2016 ownCloud, Inc.
  5. * SPDX-License-Identifier: AGPL-3.0-only
  6. */
  7. namespace OCA\Files_External\Lib\Auth;
  8. use OCP\IL10N;
  9. /**
  10. * Null authentication mechanism
  11. */
  12. class NullMechanism extends AuthMechanism {
  13. public function __construct(IL10N $l) {
  14. $this
  15. ->setIdentifier('null::null')
  16. ->setScheme(self::SCHEME_NULL)
  17. ->setText($l->t('None'))
  18. ;
  19. }
  20. }