aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Authentication/Token/Manager.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2019-07-18 11:36:50 +0200
committerMorris Jobke <hey@morrisjobke.de>2019-07-18 18:50:44 +0200
commit4ae17427c5c7693da87d57c90c0c249994d4b69a (patch)
tree733793689457ffd49b94e9c9936e5bb33775c2ae /lib/private/Authentication/Token/Manager.php
parent3d0e0f23530160419f182ac9e896dea6f7bc9f59 (diff)
downloadnextcloud-server-4ae17427c5c7693da87d57c90c0c249994d4b69a.tar.gz
nextcloud-server-4ae17427c5c7693da87d57c90c0c249994d4b69a.zip
Error with exception on SSL error
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/private/Authentication/Token/Manager.php')
-rw-r--r--lib/private/Authentication/Token/Manager.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/Authentication/Token/Manager.php b/lib/private/Authentication/Token/Manager.php
index c49bd1b1e19..76c0dfb8695 100644
--- a/lib/private/Authentication/Token/Manager.php
+++ b/lib/private/Authentication/Token/Manager.php
@@ -109,6 +109,7 @@ class Manager implements IProvider {
*
* @param string $tokenId
* @throws InvalidTokenException
+ * @throws \RuntimeException when OpenSSL reports a problem
* @return IToken
*/
public function getToken(string $tokenId): IToken {
@@ -206,6 +207,7 @@ class Manager implements IProvider {
* @param string $newTokenId
* @return IToken
* @throws InvalidTokenException
+ * @throws \RuntimeException when OpenSSL reports a problem
*/
public function rotate(IToken $token, string $oldTokenId, string $newTokenId): IToken {
if ($token instanceof DefaultToken) {