aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Authentication/Exceptions/ExpiredTokenException.php2
-rw-r--r--lib/private/Authentication/Exceptions/WipeTokenException.php2
-rw-r--r--lib/private/Authentication/Token/IToken.php3
-rw-r--r--lib/public/Authentication/Exceptions/ExpiredTokenException.php6
-rw-r--r--lib/public/Authentication/Exceptions/InvalidTokenException.php2
-rw-r--r--lib/public/Authentication/Exceptions/WipeTokenException.php6
-rw-r--r--lib/public/Authentication/Token/IToken.php15
7 files changed, 27 insertions, 9 deletions
diff --git a/lib/private/Authentication/Exceptions/ExpiredTokenException.php b/lib/private/Authentication/Exceptions/ExpiredTokenException.php
index 18618a557f3..15069313712 100644
--- a/lib/private/Authentication/Exceptions/ExpiredTokenException.php
+++ b/lib/private/Authentication/Exceptions/ExpiredTokenException.php
@@ -28,7 +28,7 @@ namespace OC\Authentication\Exceptions;
use OC\Authentication\Token\IToken;
/**
- * @deprecated 28.0.0 use OCP version instead
+ * @deprecated 28.0.0 use {@see \OCP\Authentication\Exceptions\ExpiredTokenException} instead
*/
class ExpiredTokenException extends \OCP\Authentication\Exceptions\ExpiredTokenException {
public function __construct(
diff --git a/lib/private/Authentication/Exceptions/WipeTokenException.php b/lib/private/Authentication/Exceptions/WipeTokenException.php
index 9b24ca24430..25b7cb74359 100644
--- a/lib/private/Authentication/Exceptions/WipeTokenException.php
+++ b/lib/private/Authentication/Exceptions/WipeTokenException.php
@@ -28,7 +28,7 @@ namespace OC\Authentication\Exceptions;
use OC\Authentication\Token\IToken;
/**
- * @deprecated 28.0.0 use OCP version instead
+ * @deprecated 28.0.0 use {@see \OCP\Authentication\Exceptions\WipeTokenException} instead
*/
class WipeTokenException extends \OCP\Authentication\Exceptions\WipeTokenException {
public function __construct(
diff --git a/lib/private/Authentication/Token/IToken.php b/lib/private/Authentication/Token/IToken.php
index e8c3b638b9f..eb172f33396 100644
--- a/lib/private/Authentication/Token/IToken.php
+++ b/lib/private/Authentication/Token/IToken.php
@@ -28,5 +28,8 @@ namespace OC\Authentication\Token;
use OCP\Authentication\Token\IToken as OCPIToken;
+/**
+ * @deprecated 28.0.0 use {@see \OCP\Authentication\Token\IToken} instead
+ */
interface IToken extends OCPIToken {
}
diff --git a/lib/public/Authentication/Exceptions/ExpiredTokenException.php b/lib/public/Authentication/Exceptions/ExpiredTokenException.php
index 58f2f22d5c7..5c1f4a30541 100644
--- a/lib/public/Authentication/Exceptions/ExpiredTokenException.php
+++ b/lib/public/Authentication/Exceptions/ExpiredTokenException.php
@@ -28,11 +28,11 @@ namespace OCP\Authentication\Exceptions;
use OCP\Authentication\Token\IToken;
/**
- * @since 28.0
+ * @since 28.0.0
*/
class ExpiredTokenException extends InvalidTokenException {
/**
- * @since 28.0
+ * @since 28.0.0
*/
public function __construct(
private IToken $token,
@@ -41,7 +41,7 @@ class ExpiredTokenException extends InvalidTokenException {
}
/**
- * @since 28.0
+ * @since 28.0.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 7d55694d3ea..4869cbd6465 100644
--- a/lib/public/Authentication/Exceptions/InvalidTokenException.php
+++ b/lib/public/Authentication/Exceptions/InvalidTokenException.php
@@ -27,7 +27,7 @@ namespace OCP\Authentication\Exceptions;
use Exception;
/**
- * @since 28.0
+ * @since 28.0.0
*/
class InvalidTokenException extends Exception {
}
diff --git a/lib/public/Authentication/Exceptions/WipeTokenException.php b/lib/public/Authentication/Exceptions/WipeTokenException.php
index 9e80432ef52..81ea2dc57ad 100644
--- a/lib/public/Authentication/Exceptions/WipeTokenException.php
+++ b/lib/public/Authentication/Exceptions/WipeTokenException.php
@@ -28,11 +28,11 @@ namespace OCP\Authentication\Exceptions;
use OCP\Authentication\Token\IToken;
/**
- * @since 28.0
+ * @since 28.0.0
*/
class WipeTokenException extends InvalidTokenException {
/**
- * @since 28.0
+ * @since 28.0.0
*/
public function __construct(
private IToken $token,
@@ -41,7 +41,7 @@ class WipeTokenException extends InvalidTokenException {
}
/**
- * @since 28.0
+ * @since 28.0.0
*/
public function getToken(): IToken {
return $this->token;
diff --git a/lib/public/Authentication/Token/IToken.php b/lib/public/Authentication/Token/IToken.php
index e6161f3b14c..7b6ce8327c6 100644
--- a/lib/public/Authentication/Token/IToken.php
+++ b/lib/public/Authentication/Token/IToken.php
@@ -32,10 +32,25 @@ use JsonSerializable;
* @since 28.0.0
*/
interface IToken extends JsonSerializable {
+ /**
+ * @since 28.0.0
+ */
public const TEMPORARY_TOKEN = 0;
+ /**
+ * @since 28.0.0
+ */
public const PERMANENT_TOKEN = 1;
+ /**
+ * @since 28.0.0
+ */
public const WIPE_TOKEN = 2;
+ /**
+ * @since 28.0.0
+ */
public const DO_NOT_REMEMBER = 0;
+ /**
+ * @since 28.0.0
+ */
public const REMEMBER = 1;
/**