diff options
Diffstat (limited to 'apps/federatedfilesharing/lib/TokenHandler.php')
-rw-r--r-- | apps/federatedfilesharing/lib/TokenHandler.php | 31 |
1 files changed, 7 insertions, 24 deletions
diff --git a/apps/federatedfilesharing/lib/TokenHandler.php b/apps/federatedfilesharing/lib/TokenHandler.php index ffa81dfd074..0151d12f5d9 100644 --- a/apps/federatedfilesharing/lib/TokenHandler.php +++ b/apps/federatedfilesharing/lib/TokenHandler.php @@ -1,24 +1,9 @@ <?php + /** - * @copyright Copyright (c) 2016, ownCloud, Inc. - * - * @author Björn Schießle <bjoern@schiessle.org> - * @author Christoph Wurst <christoph@winzerhof-wurst.at> - * - * @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: 2019-2024 Nextcloud GmbH and Nextcloud contributors + * SPDX-FileCopyrightText: 2016 ownCloud, Inc. + * SPDX-License-Identifier: AGPL-3.0-only */ namespace OCA\FederatedFileSharing; @@ -32,16 +17,14 @@ use OCP\Security\ISecureRandom; class TokenHandler { public const TOKEN_LENGTH = 15; - /** @var ISecureRandom */ - private $secureRandom; - /** * TokenHandler constructor. * * @param ISecureRandom $secureRandom */ - public function __construct(ISecureRandom $secureRandom) { - $this->secureRandom = $secureRandom; + public function __construct( + private ISecureRandom $secureRandom, + ) { } /** |