ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Class ilWACToken. More...
Public Member Functions | |
__construct ($path, $client, $timestamp=0, $ttl=0) | |
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 | SALT_FILE_PATH = './data/wacsalt.php' |
Protected Member Functions | |
initSalt () | |
generateSaltFile () | |
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 = 0 , |
|||
$ttl = 0 |
|||
) |
ilWACToken constructor.
string | $path | |
string | $client | |
int | $timestamp | |
int | $ttl |
Definition at line 65 of file class.ilWACToken.php.
References $_SERVER, $client, $path, $session_id, $timestamp, $ttl, generateToken(), getPath(), ilWACSignedPath\getTokenMaxLifetimeInSeconds(), setClient(), setId(), setIp(), setPath(), setSessionId(), setTimestamp(), setTTL(), and time.
|
protected |
ilWACException |
Definition at line 129 of file class.ilWACToken.php.
References $template, ilWACException\DATA_DIR_NON_WRITEABLE, and time.
Referenced by initSalt().
ilWACToken::generateToken | ( | ) |
Definition at line 89 of file class.ilWACToken.php.
References $token, array, getClient(), getTimestamp(), getTTL(), initSalt(), setRawToken(), and setToken().
Referenced by __construct(), and ilWACTokenTest\testTokenGeneration().
ilWACToken::getClient | ( | ) |
Definition at line 298 of file class.ilWACToken.php.
References $client.
Referenced by generateToken().
ilWACToken::getHashedId | ( | ) |
Definition at line 259 of file class.ilWACToken.php.
ilWACToken::getId | ( | ) |
ilWACToken::getIp | ( | ) |
ilWACToken::getPath | ( | ) |
Definition at line 230 of file class.ilWACToken.php.
References $path.
Referenced by __construct().
ilWACToken::getRawToken | ( | ) |
|
static |
Definition at line 278 of file class.ilWACToken.php.
Referenced by ilWACTokenTest\testTokenGeneration().
ilWACToken::getSessionId | ( | ) |
ilWACToken::getTimestamp | ( | ) |
Definition at line 170 of file class.ilWACToken.php.
References $timestamp.
Referenced by generateToken().
ilWACToken::getToken | ( | ) |
ilWACToken::getTTL | ( | ) |
Definition at line 318 of file class.ilWACToken.php.
References $ttl.
Referenced by generateToken().
|
protected |
Definition at line 107 of file class.ilWACToken.php.
References generateSaltFile().
Referenced by generateToken().
ilWACToken::setClient | ( | $client | ) |
string | $client |
Definition at line 308 of file class.ilWACToken.php.
References $client.
Referenced by __construct().
ilWACToken::setId | ( | $id | ) |
string | $id |
Definition at line 268 of file class.ilWACToken.php.
References $id.
Referenced by __construct().
ilWACToken::setIp | ( | $ip | ) |
string | $ip |
Definition at line 200 of file class.ilWACToken.php.
References $ip.
Referenced by __construct().
ilWACToken::setPath | ( | $path | ) |
string | $path |
Definition at line 240 of file class.ilWACToken.php.
References $path.
Referenced by __construct().
ilWACToken::setRawToken | ( | $raw_token | ) |
string | $raw_token |
Definition at line 348 of file class.ilWACToken.php.
References $raw_token.
Referenced by generateToken().
|
static |
string | $salt |
Definition at line 288 of file class.ilWACToken.php.
Referenced by ilWACCheckingInstanceTest\setUp(), and ilWACTokenTest\setUp().
ilWACToken::setSessionId | ( | $session_id | ) |
string | $session_id |
Definition at line 160 of file class.ilWACToken.php.
References $session_id.
Referenced by __construct().
ilWACToken::setTimestamp | ( | $timestamp | ) |
int | $timestamp |
Definition at line 180 of file class.ilWACToken.php.
References $timestamp.
Referenced by __construct().
ilWACToken::setToken | ( | $token | ) |
string | $token |
Definition at line 220 of file class.ilWACToken.php.
References $token.
Referenced by generateToken().
ilWACToken::setTTL | ( | $ttl | ) |
int | $ttl |
Definition at line 328 of file class.ilWACToken.php.
References $ttl.
Referenced by __construct().
|
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::SALT_FILE_PATH = './data/wacsalt.php' |
Definition at line 14 of file class.ilWACToken.php.