2018-05-16 12:39:00 +02:00
|
|
|
<?php
|
2019-12-03 19:57:53 +01:00
|
|
|
|
2018-05-16 12:39:00 +02:00
|
|
|
declare(strict_types=1);
|
2019-12-03 19:57:53 +01:00
|
|
|
|
2018-05-16 12:39:00 +02:00
|
|
|
/**
|
2024-05-23 09:26:56 +02:00
|
|
|
* SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2018-05-16 12:39:00 +02:00
|
|
|
*/
|
2018-10-30 13:18:41 +01:00
|
|
|
namespace OC\Authentication\Exceptions;
|
2018-05-16 12:39:00 +02:00
|
|
|
|
2023-10-23 10:57:26 +02:00
|
|
|
use OC\Authentication\Token\IToken;
|
|
|
|
|
2023-10-23 10:18:20 +02:00
|
|
|
/**
|
2023-10-23 15:20:04 +02:00
|
|
|
* @deprecated 28.0.0 use {@see \OCP\Authentication\Exceptions\ExpiredTokenException} instead
|
2023-10-23 10:18:20 +02:00
|
|
|
*/
|
|
|
|
class ExpiredTokenException extends \OCP\Authentication\Exceptions\ExpiredTokenException {
|
2023-10-23 10:57:26 +02: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;
|
|
|
|
}
|
2018-05-16 12:39:00 +02:00
|
|
|
}
|