ILIAS
release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
|
Class ilWACToken. More...
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 () | |
setId ($id) | |
getClient () | |
setClient ($client) | |
getTTL () | |
setTTL ($ttl) | |
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 = '' | |
$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 60 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().
|
protected |
Definition at line 118 of file class.ilWACToken.php.
References ilWACException\DATA_DIR_NON_WRITEABLE, and getSaltFilePath().
Referenced by initSalt().
ilWACToken::generateToken | ( | ) |
Definition at line 85 of file class.ilWACToken.php.
References $token, getClient(), getIp(), getTimestamp(), getTTL(), initSalt(), and setToken().
Referenced by __construct().
ilWACToken::getClient | ( | ) |
Definition at line 249 of file class.ilWACToken.php.
References $client.
Referenced by generateToken().
ilWACToken::getId | ( | ) |
ilWACToken::getIp | ( | ) |
Definition at line 169 of file class.ilWACToken.php.
References $ip.
Referenced by generateToken().
ilWACToken::getPath | ( | ) |
Definition at line 201 of file class.ilWACToken.php.
References $path.
Referenced by __construct().
|
static |
Definition at line 233 of file class.ilWACToken.php.
|
protected |
Definition at line 96 of file class.ilWACToken.php.
Referenced by generateSaltFile(), and initSalt().
ilWACToken::getSessionId | ( | ) |
ilWACToken::getTimestamp | ( | ) |
Definition at line 153 of file class.ilWACToken.php.
References $timestamp.
Referenced by generateToken().
ilWACToken::getToken | ( | ) |
ilWACToken::getTTL | ( | ) |
Definition at line 265 of file class.ilWACToken.php.
References $ttl.
Referenced by generateToken().
|
protected |
Definition at line 103 of file class.ilWACToken.php.
References generateSaltFile(), and getSaltFilePath().
Referenced by generateToken().
|
staticprotected |
Definition at line 80 of file class.ilWACToken.php.
References DEBUG, and ilWebAccessChecker\isDEBUG().
ilWACToken::setClient | ( | $client | ) |
string | $client |
Definition at line 257 of file class.ilWACToken.php.
References $client.
Referenced by __construct().
ilWACToken::setId | ( | $id | ) |
string | $id |
Definition at line 225 of file class.ilWACToken.php.
References $id.
Referenced by __construct().
ilWACToken::setIp | ( | $ip | ) |
string | $ip |
Definition at line 177 of file class.ilWACToken.php.
References $ip.
Referenced by __construct().
ilWACToken::setPath | ( | $path | ) |
string | $path |
Definition at line 209 of file class.ilWACToken.php.
References $path.
Referenced by __construct().
|
static |
ilWACToken::setSessionId | ( | $session_id | ) |
string | $session_id |
Definition at line 145 of file class.ilWACToken.php.
References $session_id.
Referenced by __construct().
ilWACToken::setTimestamp | ( | $timestamp | ) |
int | $timestamp |
Definition at line 161 of file class.ilWACToken.php.
References $timestamp.
Referenced by __construct().
ilWACToken::setToken | ( | $token | ) |
string | $token |
Definition at line 193 of file class.ilWACToken.php.
References $token.
Referenced by generateToken().
ilWACToken::setTTL | ( | $ttl | ) |
int | $ttl |
Definition at line 273 of file class.ilWACToken.php.
References $ttl.
Referenced by __construct().
|
protected |
Definition at line 46 of file class.ilWACToken.php.
Referenced by __construct(), getClient(), and setClient().
|
protected |
Definition at line 42 of file class.ilWACToken.php.
|
protected |
Definition at line 30 of file class.ilWACToken.php.
|
protected |
Definition at line 38 of file class.ilWACToken.php.
Referenced by __construct(), getPath(), and setPath().
|
staticprotected |
Definition at line 18 of file class.ilWACToken.php.
Referenced by setSALT().
|
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 50 of file class.ilWACToken.php.
Referenced by __construct(), getTTL(), and setTTL().
const ilWACToken::DEBUG = false |
Definition at line 12 of file class.ilWACToken.php.
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.