aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/Lib/Auth/NullMechanism.php
blob: 7847c111415415032d0906533ff72bd73caed243 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
/**
 * SPDX-FileCopyrightText: 2019-2024 Nextcloud GmbH and Nextcloud contributors
 * SPDX-FileCopyrightText: 2016 ownCloud, Inc.
 * SPDX-License-Identifier: AGPL-3.0-only
 */
namespace OCA\Files_External\Lib\Auth;

use OCP\IL10N;

/**
 * Null authentication mechanism
 */
class NullMechanism extends AuthMechanism {
	public function __construct(IL10N $l) {
		$this
			->setIdentifier('null::null')
			->setScheme(self::SCHEME_NULL)
			->setText($l->t('None'))
		;
	}
}