2023-10-23 04:18:20 -04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
|
|
/**
|
2024-05-23 03:26:56 -04:00
|
|
|
* SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2023-10-23 04:18:20 -04:00
|
|
|
*/
|
|
|
|
|
namespace OCP\Authentication\Exceptions;
|
|
|
|
|
|
|
|
|
|
use OCP\Authentication\Token\IToken;
|
|
|
|
|
|
2023-10-23 04:57:26 -04:00
|
|
|
/**
|
2023-10-23 09:20:04 -04:00
|
|
|
* @since 28.0.0
|
2023-10-23 04:57:26 -04:00
|
|
|
*/
|
2023-10-23 04:18:20 -04:00
|
|
|
class WipeTokenException extends InvalidTokenException {
|
2023-10-23 04:57:26 -04:00
|
|
|
/**
|
2023-10-23 09:20:04 -04:00
|
|
|
* @since 28.0.0
|
2023-10-23 04:57:26 -04:00
|
|
|
*/
|
2023-10-23 04:18:20 -04:00
|
|
|
public function __construct(
|
|
|
|
|
private IToken $token,
|
|
|
|
|
) {
|
|
|
|
|
parent::__construct();
|
|
|
|
|
}
|
|
|
|
|
|
2023-10-23 04:57:26 -04:00
|
|
|
/**
|
2023-10-23 09:20:04 -04:00
|
|
|
* @since 28.0.0
|
2023-10-23 04:57:26 -04:00
|
|
|
*/
|
2023-10-23 04:18:20 -04:00
|
|
|
public function getToken(): IToken {
|
|
|
|
|
return $this->token;
|
|
|
|
|
}
|
|
|
|
|
}
|