IToken
extends
JsonSerializable
in
Tags
Table of Contents
Constants
- DO_NOT_REMEMBER = 0
- PERMANENT_TOKEN = 1
- REMEMBER = 1
- SCOPE_FILESYSTEM = 'filesystem'
- SCOPE_SKIP_PASSWORD_VALIDATION = 'password-unconfirmable'
- TEMPORARY_TOKEN = 0
- WIPE_TOKEN = 2
Methods
- getId() : int
- Get the token ID
- getLastCheck() : int
- Get the timestamp of the last password check
- getLoginName() : string
- Get the login name used when generating the token
- getName() : string
- Get the name of the token
- getPassword() : string|null
- Get the (encrypted) login password
- getRemember() : int
- Get the remember state of the token
- getScope() : string
- Get the authentication scope for this token
- getScopeAsArray() : array<string|int, mixed>
- Get the authentication scope for this token
- getUID() : string
- Get the user UID
- setExpires() : void
- Set the expiration time of the token
- setLastCheck() : void
- Set the timestamp of the last password check
- setPassword() : void
- Set the password
- setScope() : void
- Set the authentication scope for this token
- setToken() : void
- Set the token
Constants
DO_NOT_REMEMBER
public
mixed
DO_NOT_REMEMBER
= 0
Tags
PERMANENT_TOKEN
public
mixed
PERMANENT_TOKEN
= 1
Tags
REMEMBER
public
mixed
REMEMBER
= 1
Tags
SCOPE_FILESYSTEM
public
mixed
SCOPE_FILESYSTEM
= 'filesystem'
Tags
SCOPE_SKIP_PASSWORD_VALIDATION
public
mixed
SCOPE_SKIP_PASSWORD_VALIDATION
= 'password-unconfirmable'
Tags
TEMPORARY_TOKEN
public
mixed
TEMPORARY_TOKEN
= 0
Tags
WIPE_TOKEN
public
mixed
WIPE_TOKEN
= 2
Tags
Methods
getId()
Get the token ID
public
getId() : int
Tags
Return values
intgetLastCheck()
Get the timestamp of the last password check
public
getLastCheck() : int
Tags
Return values
intgetLoginName()
Get the login name used when generating the token
public
getLoginName() : string
Tags
Return values
stringgetName()
Get the name of the token
public
getName() : string
Tags
Return values
stringgetPassword()
Get the (encrypted) login password
public
getPassword() : string|null
Tags
Return values
string|nullgetRemember()
Get the remember state of the token
public
getRemember() : int
Tags
Return values
intgetScope()
Get the authentication scope for this token
public
getScope() : string
Tags
Return values
stringgetScopeAsArray()
Get the authentication scope for this token
public
getScopeAsArray() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>getUID()
Get the user UID
public
getUID() : string
Tags
Return values
stringsetExpires()
Set the expiration time of the token
public
setExpires(int|null $expires) : void
Parameters
- $expires : int|null
Tags
setLastCheck()
Set the timestamp of the last password check
public
setLastCheck(int $time) : void
Parameters
- $time : int
Tags
setPassword()
Set the password
public
setPassword(string $password) : void
Parameters
- $password : string
Tags
setScope()
Set the authentication scope for this token
public
setScope(array<string|int, mixed> $scope) : void
Parameters
- $scope : array<string|int, mixed>
Tags
setToken()
Set the token
public
setToken(string $token) : void
Parameters
- $token : string