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 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: 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: 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: Parameters: - $token (string)
-
public
OC\Authentication\Token\IToken::
setPassword
($password)¶ - Set the password
Source: Parameters: - $password (string)
-
public
OC\Authentication\Token\IToken::
setExpires
($expires)¶ - Set the expiration time of the token
Source: Parameters: - $expires (int | null)