|
ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Collaboration diagram for ilWACToken: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().
Here is the call graph for this function:
|
protected |
| ilWACException |
Definition at line 100 of file class.ilWACToken.php.
References ilWACException\DATA_DIR_NON_WRITEABLE.
Referenced by initSalt().
Here is the caller graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:| ilWACToken::getClient | ( | ) |
Definition at line 208 of file class.ilWACToken.php.
References $client.
Referenced by generateToken().
Here is the caller graph for this function:| 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().
Here is the caller graph for this function:| ilWACToken::getRawToken | ( | ) |
|
static |
Definition at line 196 of file class.ilWACToken.php.
Referenced by ilWACTokenTest\testTokenGeneration().
Here is the caller graph for this function:| ilWACToken::getSessionId | ( | ) |
| ilWACToken::getTimestamp | ( | ) |
Definition at line 130 of file class.ilWACToken.php.
References $timestamp.
Referenced by generateToken().
Here is the caller graph for this function:| ilWACToken::getToken | ( | ) |
| ilWACToken::getTTL | ( | ) |
Definition at line 220 of file class.ilWACToken.php.
References $ttl.
Referenced by generateToken().
Here is the caller graph for this function:
|
protected |
Definition at line 78 of file class.ilWACToken.php.
References generateSaltFile().
Referenced by generateToken().
Here is the call graph for this function:
Here is the caller graph for this function:| ilWACToken::setClient | ( | string | $client | ) |
Definition at line 214 of file class.ilWACToken.php.
References $client.
Referenced by __construct().
Here is the caller graph for this function:| ilWACToken::setId | ( | string | $id | ) |
Definition at line 190 of file class.ilWACToken.php.
References $id.
Referenced by __construct().
Here is the caller graph for this function:| ilWACToken::setIp | ( | string | $ip | ) |
Definition at line 148 of file class.ilWACToken.php.
References $ip.
Referenced by __construct().
Here is the caller graph for this function:| ilWACToken::setPath | ( | string | $path | ) |
Definition at line 172 of file class.ilWACToken.php.
References $path.
Referenced by __construct().
Here is the caller graph for this function:| ilWACToken::setRawToken | ( | string | $raw_token | ) |
Definition at line 238 of file class.ilWACToken.php.
References $raw_token.
Referenced by generateToken().
Here is the caller graph for this function:
|
static |
Definition at line 202 of file class.ilWACToken.php.
Referenced by ilWACCheckingInstanceTest\setUp(), and ilWACTokenTest\setUp().
Here is the caller graph for this function:| ilWACToken::setSessionId | ( | string | $session_id | ) |
Definition at line 124 of file class.ilWACToken.php.
References $session_id.
Referenced by __construct().
Here is the caller graph for this function:| ilWACToken::setTimestamp | ( | int | $timestamp | ) |
Definition at line 136 of file class.ilWACToken.php.
References $timestamp.
Referenced by __construct().
Here is the caller graph for this function:| ilWACToken::setToken | ( | string | $token | ) |
Definition at line 160 of file class.ilWACToken.php.
References $token.
Referenced by generateToken().
Here is the caller graph for this function:| ilWACToken::setTTL | ( | int | $ttl | ) |
Definition at line 226 of file class.ilWACToken.php.
References $ttl.
Referenced by __construct().
Here is the caller graph for this function:
|
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.