2019-04-03 10:00:46 -04:00
|
|
|
<?php
|
2019-12-03 13:57:53 -05:00
|
|
|
|
2019-04-03 10:00:46 -04:00
|
|
|
declare(strict_types=1);
|
2019-12-03 13:57:53 -05:00
|
|
|
|
2019-04-03 10:00:46 -04:00
|
|
|
/**
|
2024-05-23 03:26:56 -04:00
|
|
|
* SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2019-04-03 10:00:46 -04:00
|
|
|
*/
|
|
|
|
|
namespace OC\Authentication\Exceptions;
|
|
|
|
|
|
2023-10-23 04:57:26 -04:00
|
|
|
use OC\Authentication\Token\IToken;
|
|
|
|
|
|
2023-10-23 04:18:20 -04:00
|
|
|
/**
|
2023-10-23 09:20:04 -04:00
|
|
|
* @deprecated 28.0.0 use {@see \OCP\Authentication\Exceptions\WipeTokenException} instead
|
2023-10-23 04:18:20 -04:00
|
|
|
*/
|
|
|
|
|
class WipeTokenException extends \OCP\Authentication\Exceptions\WipeTokenException {
|
2023-10-23 04:57:26 -04:00
|
|
|
public function __construct(
|
|
|
|
|
IToken $token,
|
|
|
|
|
) {
|
|
|
|
|
parent::__construct($token);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function getToken(): IToken {
|
|
|
|
|
$token = parent::getToken();
|
|
|
|
|
/** @var IToken $token We know that we passed OC interface from constructor */
|
|
|
|
|
return $token;
|
|
|
|
|
}
|
2019-04-03 10:00:46 -04:00
|
|
|
}
|