DefaultToken¶
-
class
OC\Authentication\Token\
DefaultToken
¶ Source: lib/private/Authentication/Token/DefaultToken.php#45 Parent: OCP\AppFramework\Db\Entity
Implements: OC\Authentication\Token\INamedToken
Constants¶
-
VERSION = 1
Source: lib/private/Authentication/Token/DefaultToken.php#46
Properties¶
-
protected static property
OC\Authentication\Token\DefaultToken::$
uid
¶ Source: lib/private/Authentication/Token/DefaultToken.php#49 Type: string user UID
-
protected static property
OC\Authentication\Token\DefaultToken::$
loginName
¶ Source: lib/private/Authentication/Token/DefaultToken.php#52 Type: string login name used for generating the token
-
protected static property
OC\Authentication\Token\DefaultToken::$
password
¶ Source: lib/private/Authentication/Token/DefaultToken.php#55 Type: string encrypted user password
-
protected static property
OC\Authentication\Token\DefaultToken::$
name
¶ Source: lib/private/Authentication/Token/DefaultToken.php#58 Type: string token name (e.g. browser/OS)
-
protected static property
OC\Authentication\Token\DefaultToken::$
token
¶ Source: lib/private/Authentication/Token/DefaultToken.php#61 Type: string
-
protected static property
OC\Authentication\Token\DefaultToken::$
type
¶ Source: lib/private/Authentication/Token/DefaultToken.php#64 Type: int
-
protected static property
OC\Authentication\Token\DefaultToken::$
remember
¶ Source: lib/private/Authentication/Token/DefaultToken.php#67 Type: int
-
protected static property
OC\Authentication\Token\DefaultToken::$
lastActivity
¶ Source: lib/private/Authentication/Token/DefaultToken.php#70 Type: int
-
protected static property
OC\Authentication\Token\DefaultToken::$
lastCheck
¶ Source: lib/private/Authentication/Token/DefaultToken.php#73 Type: int
-
protected static property
OC\Authentication\Token\DefaultToken::$
scope
¶ Source: lib/private/Authentication/Token/DefaultToken.php#76 Type: string
-
protected static property
OC\Authentication\Token\DefaultToken::$
expires
¶ Source: lib/private/Authentication/Token/DefaultToken.php#79 Type: int
-
protected static property
OC\Authentication\Token\DefaultToken::$
version
¶ Source: lib/private/Authentication/Token/DefaultToken.php#82 Type: int
Methods¶
-
public
OC\Authentication\Token\DefaultToken::
__construct
()¶ Source: lib/private/Authentication/Token/DefaultToken.php#84
-
public
OC\Authentication\Token\DefaultToken::
getId
()¶ Source: lib/private/Authentication/Token/DefaultToken.php#99
-
public
OC\Authentication\Token\DefaultToken::
getUID
()¶ Source: lib/private/Authentication/Token/DefaultToken.php#103
-
public
OC\Authentication\Token\DefaultToken::
getLoginName
()¶ - Get the login name used when generating the token
Source: lib/private/Authentication/Token/DefaultToken.php#112 Returns: string
-
public
OC\Authentication\Token\DefaultToken::
getPassword
()¶ - Get the (encrypted) login password
Source: lib/private/Authentication/Token/DefaultToken.php#121 Returns: string | null
-
public
OC\Authentication\Token\DefaultToken::
jsonSerialize
()¶ Source: lib/private/Authentication/Token/DefaultToken.php#125
-
public
OC\Authentication\Token\DefaultToken::
getLastCheck
()¶ - Get the timestamp of the last password check
Source: lib/private/Authentication/Token/DefaultToken.php#140 Returns: int
-
public
OC\Authentication\Token\DefaultToken::
setLastCheck
($time)¶ - Get the timestamp of the last password check
Source: Parameters: - $time (int)
-
public
OC\Authentication\Token\DefaultToken::
getScope
()¶ Source: lib/private/Authentication/Token/DefaultToken.php#153
-
public
OC\Authentication\Token\DefaultToken::
getScopeAsArray
()¶ Source: lib/private/Authentication/Token/DefaultToken.php#162
-
public
OC\Authentication\Token\DefaultToken::
setScope
($scope)¶ Source: lib/private/Authentication/Token/DefaultToken.php#172
-
public
OC\Authentication\Token\DefaultToken::
getName
()¶ Source: lib/private/Authentication/Token/DefaultToken.php#180
-
public
OC\Authentication\Token\DefaultToken::
setName
($name)¶ Source: lib/private/Authentication/Token/DefaultToken.php#184
-
public
OC\Authentication\Token\DefaultToken::
getRemember
()¶ Source: lib/private/Authentication/Token/DefaultToken.php#188
-
public
OC\Authentication\Token\DefaultToken::
setToken
($token)¶ Source: lib/private/Authentication/Token/DefaultToken.php#192
-
public
OC\Authentication\Token\DefaultToken::
setPassword
($password=null)¶ Source: lib/private/Authentication/Token/DefaultToken.php#196
-
public
OC\Authentication\Token\DefaultToken::
setExpires
($expires)¶ Source: lib/private/Authentication/Token/DefaultToken.php#200
-
public
OC\Authentication\Token\DefaultToken::
getExpires
()¶ Source: lib/private/Authentication/Token/DefaultToken.php#207 Returns: int | null