summaryrefslogtreecommitdiffstats
path: root/lib/public/Authentication/LoginCredentials/IStore.php
blob: e92a492f14539cd2d5be3a288a5fef5e3a85daf7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php

declare(strict_types=1);

/**
 * SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
 * SPDX-License-Identifier: AGPL-3.0-or-later
 */
namespace OCP\Authentication\LoginCredentials;

use OCP\Authentication\Exceptions\CredentialsUnavailableException;

/**
 * @since 12
 */
interface IStore {
	/**
	 * Get login credentials of the currently logged in user
	 *
	 * @since 12
	 *
	 * @throws CredentialsUnavailableException
	 * @return ICredentials the login credentials of the current user
	 */
	public function getLoginCredentials(): ICredentials;
}