Ubiquity 2.5.2
php rapid development framework
|
Manage the token api for the Rest part. More...
Public Member Functions | |
__construct ($length=10, $duration=3600, $tokens=[]) | |
getTokens () | |
getDuration () | |
getToken ($key) | |
isExpired ($key) | |
addToken ($datas=null) | |
refreshToken (string $key) | |
Refresh the token using an existing one. | |
clearAll () | |
removeExpireds () | |
remove ($key) | |
storeToCache ($key='_apiTokens') | |
getFromCache ($folder, $key='_apiTokens') | |
Protected Member Functions | |
generateToken () | |
tokenGenerator () | |
Protected Attributes | |
$tokens | |
$length | |
$duration | |
Static Protected Attributes | |
static | $cache |
Manage the token api for the Rest part.
Ubiquity\controllers\rest$ApiTokens This class is part of Ubiquity
Definition at line 16 of file ApiTokens.php.
__construct | ( | $length = 10 , |
|
$duration = 3600 , |
|||
$tokens = [ ] |
|||
) |
Definition at line 22 of file ApiTokens.php.
addToken | ( | $datas = null | ) |
Definition at line 59 of file ApiTokens.php.
clearAll | ( | ) |
Definition at line 83 of file ApiTokens.php.
|
protected |
Definition at line 28 of file ApiTokens.php.
getDuration | ( | ) |
Definition at line 43 of file ApiTokens.php.
getFromCache | ( | $folder, | |
$key = '_apiTokens' |
|||
) |
getToken | ( | $key | ) |
Definition at line 47 of file ApiTokens.php.
getTokens | ( | ) |
Definition at line 39 of file ApiTokens.php.
isExpired | ( | $key | ) |
Definition at line 51 of file ApiTokens.php.
refreshToken | ( | string | $key | ) |
Refresh the token using an existing one.
string | $key |
Definition at line 74 of file ApiTokens.php.
remove | ( | $key | ) |
Definition at line 96 of file ApiTokens.php.
removeExpireds | ( | ) |
Definition at line 87 of file ApiTokens.php.
storeToCache | ( | $key = '_apiTokens' | ) |
Definition at line 104 of file ApiTokens.php.
|
protected |
Definition at line 35 of file ApiTokens.php.
|
staticprotected |
Definition at line 20 of file ApiTokens.php.
|
protected |
Definition at line 19 of file ApiTokens.php.
|
protected |
Definition at line 18 of file ApiTokens.php.
|
protected |
Definition at line 17 of file ApiTokens.php.