|
ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Class ilWACToken. More...
Collaboration diagram for ilWACToken:Public Member Functions | |
| __construct ($path, $client, $timestamp=null, $ttl=null) | |
| ilWACToken constructor. More... | |
| generateToken () | |
| getSessionId () | |
| setSessionId ($session_id) | |
| getTimestamp () | |
| setTimestamp ($timestamp) | |
| getIp () | |
| setIp ($ip) | |
| getToken () | |
| setToken ($token) | |
| getPath () | |
| setPath ($path) | |
| getId () | |
| getHashedId () | |
| setId ($id) | |
| getClient () | |
| setClient ($client) | |
| getTTL () | |
| setTTL ($ttl) | |
| getRawToken () | |
| setRawToken ($raw_token) | |
Static Public Member Functions | |
| static | getSALT () |
| static | setSALT ($SALT) |
Data Fields | |
| const | DEBUG = false |
| const | TYPE_FILE = ilWACSignedPath::TYPE_FILE |
| const | TYPE_FOLDER = ilWACSignedPath::TYPE_FOLDER |
Protected Member Functions | |
| getSaltFilePath () | |
| initSalt () | |
| generateSaltFile () | |
Static Protected Member Functions | |
| static | isDEBUG () |
Protected Attributes | |
| $session_id = '' | |
| $timestamp = 0 | |
| $ip = '' | |
| $token = '' | |
| $raw_token = '' | |
| $path = '' | |
| $id = '' | |
| $client = '' | |
| $ttl = 0 | |
Static Protected Attributes | |
| static | $SALT = '' |
| ilWACToken::__construct | ( | $path, | |
| $client, | |||
$timestamp = null, |
|||
$ttl = null |
|||
| ) |
ilWACToken constructor.
| $path | ||
| $client | ||
| null | $timestamp |
Definition at line 64 of file class.ilWACToken.php.
References $_SERVER, $client, $path, $session_id, $timestamp, $ttl, generateToken(), getPath(), ilWACSignedPath\getTokenMaxLifetimeInSeconds(), setClient(), setId(), setIp(), setPath(), setSessionId(), setTimestamp(), and setTTL().
Here is the call graph for this function:
|
protected |
Definition at line 127 of file class.ilWACToken.php.
References ilWACException\DATA_DIR_NON_WRITEABLE, getSaltFilePath(), and setSALT().
Referenced by initSalt().
Here is the call graph for this function:
Here is the caller graph for this function:| ilWACToken::generateToken | ( | ) |
Definition at line 88 of file class.ilWACToken.php.
References $token, getClient(), getTimestamp(), getTTL(), initSalt(), setRawToken(), and setToken().
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:| ilWACToken::getClient | ( | ) |
Definition at line 266 of file class.ilWACToken.php.
References $client.
Referenced by generateToken().
Here is the caller graph for this function:| ilWACToken::getHashedId | ( | ) |
Definition at line 234 of file class.ilWACToken.php.
| ilWACToken::getId | ( | ) |
| ilWACToken::getIp | ( | ) |
| ilWACToken::getPath | ( | ) |
Definition at line 210 of file class.ilWACToken.php.
References $path.
Referenced by __construct().
Here is the caller graph for this function:| ilWACToken::getRawToken | ( | ) |
Definition at line 298 of file class.ilWACToken.php.
References $raw_token.
|
static |
Definition at line 250 of file class.ilWACToken.php.
References $SALT.
Referenced by ilWACTokenTest\testTokenGeneration().
Here is the caller graph for this function:
|
protected |
Definition at line 105 of file class.ilWACToken.php.
Referenced by generateSaltFile(), and initSalt().
Here is the caller graph for this function:| ilWACToken::getSessionId | ( | ) |
| ilWACToken::getTimestamp | ( | ) |
Definition at line 162 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 282 of file class.ilWACToken.php.
References $ttl.
Referenced by generateToken().
Here is the caller graph for this function:
|
protected |
Definition at line 112 of file class.ilWACToken.php.
References generateSaltFile(), getSaltFilePath(), and setSALT().
Referenced by generateToken().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprotected |
Definition at line 83 of file class.ilWACToken.php.
References DEBUG, and ilWebAccessChecker\isDEBUG().
Here is the call graph for this function:| ilWACToken::setClient | ( | $client | ) |
| string | $client |
Definition at line 274 of file class.ilWACToken.php.
References $client.
Referenced by __construct().
Here is the caller graph for this function:| ilWACToken::setId | ( | $id | ) |
| string | $id |
Definition at line 242 of file class.ilWACToken.php.
References $id.
Referenced by __construct().
Here is the caller graph for this function:| ilWACToken::setIp | ( | $ip | ) |
| string | $ip |
Definition at line 186 of file class.ilWACToken.php.
References $ip.
Referenced by __construct().
Here is the caller graph for this function:| ilWACToken::setPath | ( | $path | ) |
| string | $path |
Definition at line 218 of file class.ilWACToken.php.
References $path.
Referenced by __construct().
Here is the caller graph for this function:| ilWACToken::setRawToken | ( | $raw_token | ) |
| string | $raw_token |
Definition at line 306 of file class.ilWACToken.php.
References $raw_token.
Referenced by generateToken().
Here is the caller graph for this function:
|
static |
| string | $SALT |
Definition at line 258 of file class.ilWACToken.php.
References $SALT.
Referenced by generateSaltFile(), initSalt(), ilWACCheckingInstanceTest\setUp(), and ilWACTokenTest\setUp().
Here is the caller graph for this function:| ilWACToken::setSessionId | ( | $session_id | ) |
| string | $session_id |
Definition at line 154 of file class.ilWACToken.php.
References $session_id.
Referenced by __construct().
Here is the caller graph for this function:| ilWACToken::setTimestamp | ( | $timestamp | ) |
| int | $timestamp |
Definition at line 170 of file class.ilWACToken.php.
References $timestamp.
Referenced by __construct().
Here is the caller graph for this function:| ilWACToken::setToken | ( | $token | ) |
| string | $token |
Definition at line 202 of file class.ilWACToken.php.
References $token.
Referenced by generateToken().
Here is the caller graph for this function:| ilWACToken::setTTL | ( | $ttl | ) |
| int | $ttl |
Definition at line 290 of file class.ilWACToken.php.
References $ttl.
Referenced by __construct().
Here is the caller graph for this function:
|
protected |
Definition at line 50 of file class.ilWACToken.php.
Referenced by __construct(), getClient(), and setClient().
|
protected |
Definition at line 46 of file class.ilWACToken.php.
|
protected |
Definition at line 30 of file class.ilWACToken.php.
|
protected |
Definition at line 42 of file class.ilWACToken.php.
Referenced by __construct(), getPath(), and setPath().
|
protected |
Definition at line 38 of file class.ilWACToken.php.
Referenced by getRawToken(), and setRawToken().
|
staticprotected |
Definition at line 18 of file class.ilWACToken.php.
|
protected |
Definition at line 22 of file class.ilWACToken.php.
Referenced by __construct(), getSessionId(), and setSessionId().
|
protected |
Definition at line 26 of file class.ilWACToken.php.
Referenced by __construct(), getTimestamp(), and setTimestamp().
|
protected |
Definition at line 34 of file class.ilWACToken.php.
Referenced by generateToken(), getToken(), and setToken().
|
protected |
Definition at line 54 of file class.ilWACToken.php.
Referenced by __construct(), getTTL(), and setTTL().
| const ilWACToken::DEBUG = false |
Definition at line 12 of file class.ilWACToken.php.
Referenced by ilWACTokenTest\testSomeBasics().
| const ilWACToken::TYPE_FILE = ilWACSignedPath::TYPE_FILE |
Definition at line 13 of file class.ilWACToken.php.
| const ilWACToken::TYPE_FOLDER = ilWACSignedPath::TYPE_FOLDER |
Definition at line 14 of file class.ilWACToken.php.