diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2023-10-23 10:57:26 +0200 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2023-10-23 11:08:23 +0200 |
commit | 1bdf952fdeab6305785cae3522eb4807c0e68c99 (patch) | |
tree | addd703543681866bad2fcb3b89fdb24e32ebd44 /lib/public | |
parent | b82e25ea7a13e98212201a905718309a3d1415ae (diff) | |
download | nextcloud-server-1bdf952fdeab6305785cae3522eb4807c0e68c99.tar.gz nextcloud-server-1bdf952fdeab6305785cae3522eb4807c0e68c99.zip |
Make sure that OC interfaces returns OC interfaces for backward compatibility
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib/public')
3 files changed, 21 insertions, 0 deletions
diff --git a/lib/public/Authentication/Exceptions/ExpiredTokenException.php b/lib/public/Authentication/Exceptions/ExpiredTokenException.php index eab68ba4eff..58f2f22d5c7 100644 --- a/lib/public/Authentication/Exceptions/ExpiredTokenException.php +++ b/lib/public/Authentication/Exceptions/ExpiredTokenException.php @@ -27,13 +27,22 @@ namespace OCP\Authentication\Exceptions; use OCP\Authentication\Token\IToken; +/** + * @since 28.0 + */ class ExpiredTokenException extends InvalidTokenException { + /** + * @since 28.0 + */ public function __construct( private IToken $token, ) { parent::__construct(); } + /** + * @since 28.0 + */ public function getToken(): IToken { return $this->token; } diff --git a/lib/public/Authentication/Exceptions/InvalidTokenException.php b/lib/public/Authentication/Exceptions/InvalidTokenException.php index 2556e191d63..7d55694d3ea 100644 --- a/lib/public/Authentication/Exceptions/InvalidTokenException.php +++ b/lib/public/Authentication/Exceptions/InvalidTokenException.php @@ -26,5 +26,8 @@ namespace OCP\Authentication\Exceptions; use Exception; +/** + * @since 28.0 + */ class InvalidTokenException extends Exception { } diff --git a/lib/public/Authentication/Exceptions/WipeTokenException.php b/lib/public/Authentication/Exceptions/WipeTokenException.php index aa2da6739e6..9e80432ef52 100644 --- a/lib/public/Authentication/Exceptions/WipeTokenException.php +++ b/lib/public/Authentication/Exceptions/WipeTokenException.php @@ -27,13 +27,22 @@ namespace OCP\Authentication\Exceptions; use OCP\Authentication\Token\IToken; +/** + * @since 28.0 + */ class WipeTokenException extends InvalidTokenException { + /** + * @since 28.0 + */ public function __construct( private IToken $token, ) { parent::__construct(); } + /** + * @since 28.0 + */ public function getToken(): IToken { return $this->token; } |