diff options
Diffstat (limited to 'lib/public/Security/ICredentialsManager.php')
-rw-r--r-- | lib/public/Security/ICredentialsManager.php | 34 |
1 files changed, 9 insertions, 25 deletions
diff --git a/lib/public/Security/ICredentialsManager.php b/lib/public/Security/ICredentialsManager.php index 47c8c7dbef2..7b24eb7e7a2 100644 --- a/lib/public/Security/ICredentialsManager.php +++ b/lib/public/Security/ICredentialsManager.php @@ -1,26 +1,11 @@ <?php + +declare(strict_types=1); /** - * @copyright Copyright (c) 2016, ownCloud, Inc. - * - * @author Arthur Schiwon <blizzz@arthur-schiwon.de> - * @author Robin McCorkell <robin@mccorkell.me.uk> - * - * @license AGPL-3.0 - * - * This code is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License, version 3, - * as published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License, version 3, - * along with this program. If not, see <http://www.gnu.org/licenses/> - * + * SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors + * SPDX-FileCopyrightText: 2016 ownCloud, Inc. + * SPDX-License-Identifier: AGPL-3.0-only */ - namespace OCP\Security; /** @@ -29,7 +14,6 @@ namespace OCP\Security; * @since 8.2.0 */ interface ICredentialsManager { - /** * Store a set of credentials * @@ -38,7 +22,7 @@ interface ICredentialsManager { * @param mixed $credentials * @since 8.2.0 */ - public function store($userId, $identifier, $credentials); + public function store(string $userId, string $identifier, $credentials): void; /** * Retrieve a set of credentials @@ -48,7 +32,7 @@ interface ICredentialsManager { * @return mixed * @since 8.2.0 */ - public function retrieve($userId, $identifier); + public function retrieve(string $userId, string $identifier); /** * Delete a set of credentials @@ -58,7 +42,7 @@ interface ICredentialsManager { * @return int rows removed * @since 8.2.0 */ - public function delete($userId, $identifier); + public function delete(string $userId, string $identifier): int; /** * Erase all credentials stored for a user @@ -67,5 +51,5 @@ interface ICredentialsManager { * @return int rows removed * @since 8.2.0 */ - public function erase($userId); + public function erase(string $userId): int; } |