PublicKeyTokenMapper¶
-
class
OC\Authentication\Token\
PublicKeyTokenMapper
¶ Source: lib/private/Authentication/Token/PublicKeyTokenMapper.php#39 Parent: OCP\AppFramework\Db\QBMapper
Methods¶
-
public
OC\Authentication\Token\PublicKeyTokenMapper::
__construct
($db)¶ Source: lib/private/Authentication/Token/PublicKeyTokenMapper.php#40
-
public
OC\Authentication\Token\PublicKeyTokenMapper::
invalidate
($token)¶ - Invalidate (delete) a given token
Source: lib/private/Authentication/Token/PublicKeyTokenMapper.php#49
Parameters: - $token (string)
-
public
OC\Authentication\Token\PublicKeyTokenMapper::
invalidateOld
($olderThan, $remember=\OC\Authentication\Token\IToken::DO_NOT_REMEMBER)¶ Source: lib/private/Authentication/Token/PublicKeyTokenMapper.php#62
Parameters: - $olderThan (int)
- $remember (int)
-
public
OC\Authentication\Token\PublicKeyTokenMapper::
getToken
($token)¶ - Get the user UID for the given token
Source: lib/private/Authentication/Token/PublicKeyTokenMapper.php#78 Throws: \OCP\AppFramework\Db\DoesNotExistException
-
public
OC\Authentication\Token\PublicKeyTokenMapper::
getTokenById
($id)¶ - Get the token for $id
Source: lib/private/Authentication/Token/PublicKeyTokenMapper.php#100 Throws: \OCP\AppFramework\Db\DoesNotExistException
-
public
OC\Authentication\Token\PublicKeyTokenMapper::
getTokenByUser
($uid)¶ - Get all tokens of a userThe provider may limit the number of result rows in case of an abusewhere a high number of (session) tokens is generated
Source: lib/private/Authentication/Token/PublicKeyTokenMapper.php#126
Parameters: - $uid (string)
Returns:
-
public
OC\Authentication\Token\PublicKeyTokenMapper::
deleteById
($uid, $id)¶ Source: lib/private/Authentication/Token/PublicKeyTokenMapper.php#145
-
public
OC\Authentication\Token\PublicKeyTokenMapper::
deleteByName
($name)¶ - delete all auth token which belong to a specific client if the client was deleted
Source: lib/private/Authentication/Token/PublicKeyTokenMapper.php#160
Parameters: - $name (string)
-
public
OC\Authentication\Token\PublicKeyTokenMapper::
deleteTempToken
($except)¶ Source: lib/private/Authentication/Token/PublicKeyTokenMapper.php#168
-
public
OC\Authentication\Token\PublicKeyTokenMapper::
hasExpiredTokens
($uid)¶ Source: lib/private/Authentication/Token/PublicKeyTokenMapper.php#180