IToken

interface OC\Authentication\Token\IToken
Source:lib/private/Authentication/Token/IToken.php#32
Parent:JsonSerializable

Methods

public OC\Authentication\Token\IToken::getId()
Get the token ID
Source:lib/private/Authentication/Token/IToken.php#44
Returns:int
public OC\Authentication\Token\IToken::getUID()
Get the user UID
Source:lib/private/Authentication/Token/IToken.php#51
Returns:string
public OC\Authentication\Token\IToken::getLoginName()
Get the login name used when generating the token
Source:lib/private/Authentication/Token/IToken.php#58
Returns:string
public OC\Authentication\Token\IToken::getPassword()
Get the (encrypted) login password
Source:lib/private/Authentication/Token/IToken.php#65
Returns:string | null
public OC\Authentication\Token\IToken::getLastCheck()
Get the timestamp of the last password check
Source:lib/private/Authentication/Token/IToken.php#72
Returns:int
public OC\Authentication\Token\IToken::setLastCheck($time)
Set the timestamp of the last password check
Source:

lib/private/Authentication/Token/IToken.php#79

Parameters:
  • $time (int)
public OC\Authentication\Token\IToken::getScope()
Get the authentication scope for this token
Source:lib/private/Authentication/Token/IToken.php#86
Returns:string
public OC\Authentication\Token\IToken::getScopeAsArray()
Get the authentication scope for this token
Source:lib/private/Authentication/Token/IToken.php#93
Returns:array
public OC\Authentication\Token\IToken::setScope($scope)
Set the authentication scope for this token
Source:

lib/private/Authentication/Token/IToken.php#100

Parameters:
  • $scope (array)
public OC\Authentication\Token\IToken::getName()
Get the name of the token
Source:lib/private/Authentication/Token/IToken.php#106
Returns:string
public OC\Authentication\Token\IToken::getRemember()
Get the remember state of the token
Source:lib/private/Authentication/Token/IToken.php#113
Returns:int
public OC\Authentication\Token\IToken::setToken($token)
Set the token
Source:

lib/private/Authentication/Token/IToken.php#120

Parameters:
  • $token (string)
public OC\Authentication\Token\IToken::setPassword($password)
Set the password
Source:

lib/private/Authentication/Token/IToken.php#127

Parameters:
  • $password (string)
public OC\Authentication\Token\IToken::setExpires($expires)
Set the expiration time of the token
Source:

lib/private/Authentication/Token/IToken.php#134

Parameters:
  • $expires (int | null)