|
ILIAS
release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
|
Class ilWACSignedPath. More...
Collaboration diagram for ilWACSignedPath:Public Member Functions | |
| __construct (ilWACPath $ilWACPath, ilWACCookieInterface $ilWACCookieInterface=null) | |
| ilWACSignedPath constructor. More... | |
| getSignedPath () | |
| isFolderSigned () | |
| isFolderTokenValid () | |
| revalidatingFolderToken () | |
| isSignedPath () | |
| isSignedPathValid () | |
| getTokenInstance () | |
| setTokenInstance (ilWACToken $token_instance) | |
| getType () | |
| setType ($type) | |
| getPathObject () | |
| setPathObject ($path_object) | |
| buildAndSetTokenInstance ($timestamp=null, $ttl=null) | |
| isChecked () | |
| setChecked ($checked) | |
Static Public Member Functions | |
| static | signFile ($path_to_file) |
| static | signFolderOfStartFile ($start_file_path, ilWACCookieInterface $ilWACCookieInterface=null) |
| static | getTokenMaxLifetimeInSeconds () |
| static | setTokenMaxLifetimeInSeconds ($token_max_lifetime_in_seconds) |
| static | getCookieMaxLifetimeInSeconds () |
| static | setCookieMaxLifetimeInSeconds ($cookie_max_lifetime_in_seconds) |
Data Fields | |
| const | TYPE_FILE = 1 |
| const | TYPE_FOLDER = 2 |
| const | WAC_TOKEN_ID = 'il_wac_token' |
| const | WAC_TIMESTAMP_ID = 'il_wac_ts' |
| const | WAC_TTL_ID = 'il_wac_ttl' |
| const | TS_SUFFIX = 'ts' |
| const | TTL_SUFFIX = 'ttl' |
| const | MAX_LIFETIME = 600 |
Protected Member Functions | |
| saveFolderToken () | |
| checkToken () | |
| buildTokenInstance ($timestamp=null, $ttl=null) | |
| getRelevantLifeTime () | |
Protected Attributes | |
| $path_object = null | |
| $token_instance = null | |
| $type = self::TYPE_FILE | |
| $cookie = null | |
| $checked = false | |
Static Protected Attributes | |
| static | $token_max_lifetime_in_seconds = 3 |
| static | $cookie_max_lifetime_in_seconds = 300 |
| ilWACSignedPath::__construct | ( | ilWACPath | $ilWACPath, |
| ilWACCookieInterface | $ilWACCookieInterface = null |
||
| ) |
ilWACSignedPath constructor.
| \ilWACPath | $ilWACPath | |
| \ilWACCookieInterface | null | $ilWACCookieInterface |
Definition at line 59 of file class.ilWACSignedPath.php.
References setPathObject().
Here is the call graph for this function:| ilWACSignedPath::buildAndSetTokenInstance | ( | $timestamp = null, |
|
$ttl = null |
|||
| ) |
| null | $timestamp | |
| null | $ttl |
Definition at line 325 of file class.ilWACSignedPath.php.
References $timestamp, buildTokenInstance(), and setTokenInstance().
Referenced by isFolderSigned(), isSignedPathValid(), and revalidatingFolderToken().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
| null | $timestamp |
Definition at line 295 of file class.ilWACSignedPath.php.
References $client, $path, $timestamp, ilWACException\CODE_NO_TYPE, getPathObject(), getType(), TYPE_FILE, and TYPE_FOLDER.
Referenced by buildAndSetTokenInstance(), checkToken(), and isFolderSigned().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 255 of file class.ilWACSignedPath.php.
References buildTokenInstance(), ilWACLog\getInstance(), getPathObject(), getTokenInstance(), and setChecked().
Referenced by isFolderTokenValid(), and isSignedPathValid().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 353 of file class.ilWACSignedPath.php.
References $cookie_max_lifetime_in_seconds.
Referenced by ilObjSCORMInitData\getIliasScormVars(), ilSCORM13Player\getPlayer(), getRelevantLifeTime(), saveFolderToken(), and signFolderOfStartFile().
Here is the caller graph for this function:| ilWACSignedPath::getPathObject | ( | ) |
Definition at line 238 of file class.ilWACSignedPath.php.
References $path_object.
Referenced by buildTokenInstance(), checkToken(), getRelevantLifeTime(), getSignedPath(), isFolderSigned(), isSignedPath(), isSignedPathValid(), and saveFolderToken().
Here is the caller graph for this function:
|
protected |
Definition at line 373 of file class.ilWACSignedPath.php.
References getCookieMaxLifetimeInSeconds(), getPathObject(), getTokenMaxLifetimeInSeconds(), getType(), TYPE_FILE, and TYPE_FOLDER.
Here is the call graph for this function:| ilWACSignedPath::getSignedPath | ( | ) |
| ilWACException |
Definition at line 69 of file class.ilWACSignedPath.php.
References $path, getPathObject(), getTokenInstance(), getType(), and ilWACException\WRONG_PATH_TYPE.
Here is the call graph for this function:| ilWACSignedPath::getTokenInstance | ( | ) |
Definition at line 206 of file class.ilWACSignedPath.php.
References $token_instance.
Referenced by checkToken(), getSignedPath(), and saveFolderToken().
Here is the caller graph for this function:
|
static |
Definition at line 333 of file class.ilWACSignedPath.php.
References $token_max_lifetime_in_seconds.
Referenced by ilWACToken\__construct(), getRelevantLifeTime(), and signFile().
Here is the caller graph for this function:| ilWACSignedPath::getType | ( | ) |
Definition at line 222 of file class.ilWACSignedPath.php.
References $type.
Referenced by buildTokenInstance(), getRelevantLifeTime(), getSignedPath(), and revalidatingFolderToken().
Here is the caller graph for this function:| ilWACSignedPath::isChecked | ( | ) |
Definition at line 397 of file class.ilWACSignedPath.php.
References $checked.
| ilWACSignedPath::isFolderSigned | ( | ) |
Definition at line 96 of file class.ilWACSignedPath.php.
References buildAndSetTokenInstance(), buildTokenInstance(), getPathObject(), and setType().
Referenced by isFolderTokenValid().
Here is the call graph for this function:
Here is the caller graph for this function:| ilWACSignedPath::isFolderTokenValid | ( | ) |
| ilWACException |
Definition at line 113 of file class.ilWACSignedPath.php.
References checkToken(), and isFolderSigned().
Here is the call graph for this function:| ilWACSignedPath::isSignedPath | ( | ) |
Definition at line 153 of file class.ilWACSignedPath.php.
References getPathObject().
Here is the call graph for this function:| ilWACSignedPath::isSignedPathValid | ( | ) |
| ilWACException |
Definition at line 162 of file class.ilWACSignedPath.php.
References buildAndSetTokenInstance(), checkToken(), and getPathObject().
Here is the call graph for this function:| ilWACSignedPath::revalidatingFolderToken | ( | ) |
Definition at line 138 of file class.ilWACSignedPath.php.
References buildAndSetTokenInstance(), ilWACLog\getInstance(), getType(), and saveFolderToken().
Here is the call graph for this function:
|
protected |
Definition at line 122 of file class.ilWACSignedPath.php.
References getCookieMaxLifetimeInSeconds(), ilWACLog\getInstance(), getPathObject(), and getTokenInstance().
Referenced by revalidatingFolderToken().
Here is the call graph for this function:
Here is the caller graph for this function:| ilWACSignedPath::setChecked | ( | $checked | ) |
| boolean | $checked |
Definition at line 405 of file class.ilWACSignedPath.php.
References $checked.
Referenced by checkToken().
Here is the caller graph for this function:
|
static |
| $cookie_max_lifetime_in_seconds |
Definition at line 362 of file class.ilWACSignedPath.php.
References $cookie_max_lifetime_in_seconds, and ilWACException\MAX_LIFETIME.
| ilWACSignedPath::setPathObject | ( | $path_object | ) |
| ilWACPath | $path_object |
Definition at line 246 of file class.ilWACSignedPath.php.
References $path_object.
Referenced by __construct().
Here is the caller graph for this function:| ilWACSignedPath::setTokenInstance | ( | ilWACToken | $token_instance | ) |
| ilWACToken | $token_instance |
Definition at line 214 of file class.ilWACSignedPath.php.
References $token_instance.
Referenced by buildAndSetTokenInstance().
Here is the caller graph for this function:
|
static |
| $token_max_lifetime_in_seconds |
Definition at line 342 of file class.ilWACSignedPath.php.
References $token_max_lifetime_in_seconds, and ilWACException\MAX_LIFETIME.
Referenced by ilObjTestGUI\printobject(), and ilObjCertificateSettingsGUI\settings().
Here is the caller graph for this function:| ilWACSignedPath::setType | ( | $type | ) |
| int | $type |
Definition at line 230 of file class.ilWACSignedPath.php.
References $type.
Referenced by isFolderSigned().
Here is the caller graph for this function:
|
static |
| $path_to_file |
| ilWACException |
Definition at line 175 of file class.ilWACSignedPath.php.
References getTokenMaxLifetimeInSeconds().
Referenced by ilObjUser\_getPersonalPicturePath(), ilRTE\_replaceMediaObjectImageSrc(), ilPollBlockGUI\fillRow(), ilMediaCastTableGUI\fillRow(), ilObjStyleSheet\getContentStylePath(), assImagemapQuestionGUI\getPreview(), ilPreviewGUI\getPreviewHTML(), assImagemapQuestionGUI\getSolutionOutput(), assImagemapQuestionGUI\getTestOutput(), ilObjPortfolioBaseGUI\renderFullscreenHeader(), ilObjBlogGUI\renderFullscreenHeader(), ilObjCertificateSettingsGUI\settings(), and ilObjMediaCastGUI\showGallery().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
| $start_file_path | ||
| \ilWACCookieInterface | null | $ilWACCookieInterface |
Definition at line 195 of file class.ilWACSignedPath.php.
References getCookieMaxLifetimeInSeconds().
Referenced by ilSCORMPresentationGUI\frameset(), ilSCORM13Player\getPlayer(), ilSCORM13Player\pingSession(), ilSCORMPresentationGUI\pingSession(), ilObjMediaCastGUI\showGallery(), and ilObjFileBasedLMGUI\showLearningModule().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 50 of file class.ilWACSignedPath.php.
Referenced by isChecked(), and setChecked().
|
protected |
Definition at line 46 of file class.ilWACSignedPath.php.
|
staticprotected |
Definition at line 42 of file class.ilWACSignedPath.php.
Referenced by getCookieMaxLifetimeInSeconds(), and setCookieMaxLifetimeInSeconds().
|
protected |
Definition at line 26 of file class.ilWACSignedPath.php.
Referenced by getPathObject(), and setPathObject().
|
protected |
Definition at line 30 of file class.ilWACSignedPath.php.
Referenced by getTokenInstance(), and setTokenInstance().
|
staticprotected |
Definition at line 38 of file class.ilWACSignedPath.php.
Referenced by getTokenMaxLifetimeInSeconds(), and setTokenMaxLifetimeInSeconds().
|
protected |
Definition at line 34 of file class.ilWACSignedPath.php.
| const ilWACSignedPath::MAX_LIFETIME = 600 |
Definition at line 22 of file class.ilWACSignedPath.php.
| const ilWACSignedPath::TS_SUFFIX = 'ts' |
Definition at line 20 of file class.ilWACSignedPath.php.
| const ilWACSignedPath::TTL_SUFFIX = 'ttl' |
Definition at line 21 of file class.ilWACSignedPath.php.
| const ilWACSignedPath::TYPE_FILE = 1 |
Definition at line 15 of file class.ilWACSignedPath.php.
Referenced by buildTokenInstance(), and getRelevantLifeTime().
| const ilWACSignedPath::TYPE_FOLDER = 2 |
Definition at line 16 of file class.ilWACSignedPath.php.
Referenced by buildTokenInstance(), and getRelevantLifeTime().
| const ilWACSignedPath::WAC_TIMESTAMP_ID = 'il_wac_ts' |
Definition at line 18 of file class.ilWACSignedPath.php.
Referenced by ilWACPath\handleParameters(), and ilWACPath\setTimestamp().
| const ilWACSignedPath::WAC_TOKEN_ID = 'il_wac_token' |
Definition at line 17 of file class.ilWACSignedPath.php.
Referenced by ilWACPath\handleParameters(), and ilWACPath\setToken().
| const ilWACSignedPath::WAC_TTL_ID = 'il_wac_ttl' |
Definition at line 19 of file class.ilWACSignedPath.php.
Referenced by ilWACPath\handleParameters(), and ilWACPath\setTTL().