IToken¶
- 
interface OC\Authentication\Token\IToken¶
- Source: - lib/private/Authentication/Token/IToken.php#32 - Parent: - JsonSerializable
Constants¶
- 
TEMPORARY_TOKEN = 0
- Source: - lib/private/Authentication/Token/IToken.php#33 
- 
PERMANENT_TOKEN = 1
- Source: - lib/private/Authentication/Token/IToken.php#34 
- 
WIPE_TOKEN = 2
- Source: - lib/private/Authentication/Token/IToken.php#35 
- 
DO_NOT_REMEMBER = 0
- Source: - lib/private/Authentication/Token/IToken.php#36 
- 
REMEMBER = 1
- Source: - lib/private/Authentication/Token/IToken.php#37 
Methods¶
- 
public OC\Authentication\Token\IToken::getId()¶
- Get the token IDSource: lib/private/Authentication/Token/IToken.php#44 Returns: int 
- 
public OC\Authentication\Token\IToken::getUID()¶
- Get the user UIDSource: lib/private/Authentication/Token/IToken.php#51 Returns: string 
- 
public OC\Authentication\Token\IToken::getLoginName()¶
- Get the login name used when generating the tokenSource: lib/private/Authentication/Token/IToken.php#58 Returns: string 
- 
public OC\Authentication\Token\IToken::getPassword()¶
- Get the (encrypted) login passwordSource: lib/private/Authentication/Token/IToken.php#65 Returns: string | null 
- 
public OC\Authentication\Token\IToken::getLastCheck()¶
- Get the timestamp of the last password checkSource: lib/private/Authentication/Token/IToken.php#72 Returns: int 
- 
public OC\Authentication\Token\IToken::setLastCheck($time)¶
- Set the timestamp of the last password checkSource: Parameters: - $time (int)
 
- 
public OC\Authentication\Token\IToken::getScope()¶
- Get the authentication scope for this tokenSource: lib/private/Authentication/Token/IToken.php#86 Returns: string 
- 
public OC\Authentication\Token\IToken::getScopeAsArray()¶
- Get the authentication scope for this tokenSource: lib/private/Authentication/Token/IToken.php#93 Returns: array 
- 
public OC\Authentication\Token\IToken::setScope($scope)¶
- Set the authentication scope for this tokenSource: Parameters: - $scope (array)
 
- 
public OC\Authentication\Token\IToken::getName()¶
- Get the name of the tokenSource: lib/private/Authentication/Token/IToken.php#106 Returns: string 
- 
public OC\Authentication\Token\IToken::getRemember()¶
- Get the remember state of the tokenSource: lib/private/Authentication/Token/IToken.php#113 Returns: int 
- 
public OC\Authentication\Token\IToken::setToken($token)¶
- Set the tokenSource: Parameters: - $token (string)
 
- 
public OC\Authentication\Token\IToken::setPassword($password)¶
- Set the passwordSource: Parameters: - $password (string)
 
- 
public OC\Authentication\Token\IToken::setExpires($expires)¶
- Set the expiration time of the tokenSource: Parameters: - $expires (int | null)