ILIAS
release_8 Revision v8.23
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Public Member Functions | |
__construct (string $path, string $client, int $timestamp=0, int $ttl=0) | |
ilWACToken constructor. More... | |
generateToken () | |
getSessionId () | |
setSessionId (string $session_id) | |
getTimestamp () | |
setTimestamp (int $timestamp) | |
getIp () | |
setIp (string $ip) | |
getToken () | |
setToken (string $token) | |
getPath () | |
setPath (string $path) | |
getId () | |
getHashedId () | |
setId (string $id) | |
getClient () | |
setClient (string $client) | |
getTTL () | |
setTTL (int $ttl) | |
getRawToken () | |
setRawToken (string $raw_token) | |
Static Public Member Functions | |
static | getSALT () |
static | setSALT (string $salt) |
Protected Member Functions | |
initSalt () | |
generateSaltFile () | |
Protected Attributes | |
string | $session_id = '' |
int | $timestamp = 0 |
string | $ip = '' |
string | $token = '' |
string | $raw_token = '' |
string | $path = '' |
string | $id = '' |
string | $client = '' |
int | $ttl = 0 |
Static Protected Attributes | |
static string | $SALT = '' |
Private Attributes | |
const | SALT_FILE_PATH = './data/wacsalt.php' |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class ilWACToken
Definition at line 24 of file class.ilWACToken.php.
ilWACToken::__construct | ( | string | $path, |
string | $client, | ||
int | $timestamp = 0 , |
||
int | $ttl = 0 |
||
) |
ilWACToken constructor.
Definition at line 42 of file class.ilWACToken.php.
References $_SERVER, $ttl, generateToken(), getPath(), ilWACSignedPath\getTokenMaxLifetimeInSeconds(), setClient(), setId(), setIp(), setPath(), setSessionId(), setTimestamp(), and setTTL().
|
protected |
ilWACException |
Definition at line 100 of file class.ilWACToken.php.
References ilWACException\DATA_DIR_NON_WRITEABLE.
Referenced by initSalt().
ilWACToken::generateToken | ( | ) |
Definition at line 63 of file class.ilWACToken.php.
References getClient(), getTimestamp(), getTTL(), initSalt(), setRawToken(), and setToken().
Referenced by __construct(), and ilWACTokenTest\testTokenGeneration().
ilWACToken::getClient | ( | ) |
Definition at line 208 of file class.ilWACToken.php.
References $client.
Referenced by generateToken().
ilWACToken::getHashedId | ( | ) |
Definition at line 184 of file class.ilWACToken.php.
ilWACToken::getId | ( | ) |
ilWACToken::getIp | ( | ) |
ilWACToken::getPath | ( | ) |
Definition at line 166 of file class.ilWACToken.php.
References $path.
Referenced by __construct().
ilWACToken::getRawToken | ( | ) |
|
static |
Definition at line 196 of file class.ilWACToken.php.
Referenced by ilWACTokenTest\testTokenGeneration().
ilWACToken::getSessionId | ( | ) |
ilWACToken::getTimestamp | ( | ) |
Definition at line 130 of file class.ilWACToken.php.
References $timestamp.
Referenced by generateToken().
ilWACToken::getToken | ( | ) |
ilWACToken::getTTL | ( | ) |
Definition at line 220 of file class.ilWACToken.php.
References $ttl.
Referenced by generateToken().
|
protected |
Definition at line 78 of file class.ilWACToken.php.
References generateSaltFile().
Referenced by generateToken().
ilWACToken::setClient | ( | string | $client | ) |
Definition at line 214 of file class.ilWACToken.php.
References $client.
Referenced by __construct().
ilWACToken::setId | ( | string | $id | ) |
Definition at line 190 of file class.ilWACToken.php.
References $id.
Referenced by __construct().
ilWACToken::setIp | ( | string | $ip | ) |
Definition at line 148 of file class.ilWACToken.php.
References $ip.
Referenced by __construct().
ilWACToken::setPath | ( | string | $path | ) |
Definition at line 172 of file class.ilWACToken.php.
References $path.
Referenced by __construct().
ilWACToken::setRawToken | ( | string | $raw_token | ) |
Definition at line 238 of file class.ilWACToken.php.
References $raw_token.
Referenced by generateToken().
|
static |
Definition at line 202 of file class.ilWACToken.php.
Referenced by ilWACCheckingInstanceTest\setUp(), and ilWACTokenTest\setUp().
ilWACToken::setSessionId | ( | string | $session_id | ) |
Definition at line 124 of file class.ilWACToken.php.
References $session_id.
Referenced by __construct().
ilWACToken::setTimestamp | ( | int | $timestamp | ) |
Definition at line 136 of file class.ilWACToken.php.
References $timestamp.
Referenced by __construct().
ilWACToken::setToken | ( | string | $token | ) |
Definition at line 160 of file class.ilWACToken.php.
References $token.
Referenced by generateToken().
ilWACToken::setTTL | ( | int | $ttl | ) |
Definition at line 226 of file class.ilWACToken.php.
References $ttl.
Referenced by __construct().
|
protected |
Definition at line 35 of file class.ilWACToken.php.
Referenced by getClient(), and setClient().
|
protected |
Definition at line 34 of file class.ilWACToken.php.
|
protected |
Definition at line 30 of file class.ilWACToken.php.
|
protected |
Definition at line 33 of file class.ilWACToken.php.
|
protected |
Definition at line 32 of file class.ilWACToken.php.
Referenced by getRawToken(), and setRawToken().
|
staticprotected |
Definition at line 27 of file class.ilWACToken.php.
|
protected |
Definition at line 28 of file class.ilWACToken.php.
Referenced by getSessionId(), and setSessionId().
|
protected |
Definition at line 29 of file class.ilWACToken.php.
Referenced by getTimestamp(), and setTimestamp().
|
protected |
Definition at line 31 of file class.ilWACToken.php.
Referenced by getToken(), and setToken().
|
protected |
Definition at line 36 of file class.ilWACToken.php.
Referenced by __construct(), getTTL(), and setTTL().
|
private |
Definition at line 26 of file class.ilWACToken.php.