|
ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Class ilWACSignedPath. More...
Collaboration diagram for ilWACSignedPath:Public Member Functions | |
| __construct (ilWACPath $ilWACPath, GlobalHttpState $httpState, CookieFactory $cookieFactory) | |
| ilWACSignedPath constructor. More... | |
| getSignedPath () | |
| isFolderSigned () | |
| isFolderTokenValid () | |
| revalidatingFolderToken () | |
| isSignedPath () | |
| isSignedPathValid () | |
| getTokenInstance () | |
| setTokenInstance (ilWACToken $token_instance) | |
| getType () | |
| setType ($type) | |
| getPathObject () | |
| setPathObject (ilWACPath $path_object) | |
| buildAndSetTokenInstance ($timestamp=0, $ttl=0) | |
| isChecked () | |
| setChecked ($checked) | |
Static Public Member Functions | |
| static | signFile ($path_to_file) |
| static | signFolderOfStartFile ($start_file_path) |
| static | getTokenMaxLifetimeInSeconds () |
| static | setTokenMaxLifetimeInSeconds ($token_max_lifetime_in_seconds) |
| static | getCookieMaxLifetimeInSeconds () |
| static | setCookieMaxLifetimeInSeconds ($cookie_max_lifetime_in_seconds) |
Data Fields | |
| 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=0, $ttl=0) | |
| getRelevantLifeTime () | |
Protected Attributes | |
| $path_object = null | |
| $token_instance = null | |
| $type = PathType::FILE | |
| $checked = false | |
Static Protected Attributes | |
| static | $token_max_lifetime_in_seconds = 3 |
| static | $cookie_max_lifetime_in_seconds = 300 |
Private Attributes | |
| $httpService | |
| $cookieFactory | |
| ilWACSignedPath::__construct | ( | ilWACPath | $ilWACPath, |
| GlobalHttpState | $httpState, | ||
| CookieFactory | $cookieFactory | ||
| ) |
ilWACSignedPath constructor.
| \ilWACPath | $ilWACPath | |
| GlobalHttpState | $httpState | |
| CookieFactory | $cookieFactory |
Definition at line 73 of file class.ilWACSignedPath.php.
References $cookieFactory, and setPathObject().
Here is the call graph for this function:| ilWACSignedPath::buildAndSetTokenInstance | ( | $timestamp = 0, |
|
$ttl = 0 |
|||
| ) |
| int | $timestamp | |
| int | $ttl |
Definition at line 395 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 |
| int | $timestamp | |
| int | $ttl |
| ilWACException |
Definition at line 360 of file class.ilWACSignedPath.php.
References $client, $path, $timestamp, ilWACException\CODE_NO_TYPE, getPathObject(), and getType().
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 325 of file class.ilWACSignedPath.php.
References buildTokenInstance(), getPathObject(), 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 432 of file class.ilWACSignedPath.php.
References $cookie_max_lifetime_in_seconds.
Referenced by ilObjSCORMInitData\getIliasScormVars(), ilSCORM13Player\getPlayer(), getRelevantLifeTime(), saveFolderToken(), signFolderOfStartFile(), ilWACTokenTest\testFolderToken(), and ilWACTokenTest\testFolderTokenWithSecondFile().
Here is the caller graph for this function:| ilWACSignedPath::getPathObject | ( | ) |
Definition at line 305 of file class.ilWACSignedPath.php.
References $path_object.
Referenced by buildTokenInstance(), checkToken(), getRelevantLifeTime(), getSignedPath(), isFolderSigned(), isSignedPath(), and isSignedPathValid().
Here is the caller graph for this function:
|
protected |
Definition at line 458 of file class.ilWACSignedPath.php.
References getCookieMaxLifetimeInSeconds(), getPathObject(), getTokenMaxLifetimeInSeconds(), and getType().
Here is the call graph for this function:| ilWACSignedPath::getSignedPath | ( | ) |
| ilWACException |
Definition at line 85 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 266 of file class.ilWACSignedPath.php.
References $token_instance.
Referenced by getSignedPath(), and saveFolderToken().
Here is the caller graph for this function:
|
static |
Definition at line 407 of file class.ilWACSignedPath.php.
References $token_max_lifetime_in_seconds.
Referenced by ilWACToken\__construct(), ilOnScreenChatUserDataProvider\getDataByUserIds(), getRelevantLifeTime(), signFile(), and ilWACTokenTest\testFileToken().
Here is the caller graph for this function:| ilWACSignedPath::getType | ( | ) |
Definition at line 285 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 483 of file class.ilWACSignedPath.php.
References $checked.
| ilWACSignedPath::isFolderSigned | ( | ) |
Definition at line 116 of file class.ilWACSignedPath.php.
References $name, 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 152 of file class.ilWACSignedPath.php.
References checkToken(), and isFolderSigned().
Here is the call graph for this function:| ilWACSignedPath::isSignedPath | ( | ) |
Definition at line 207 of file class.ilWACSignedPath.php.
References getPathObject().
Here is the call graph for this function:| ilWACSignedPath::isSignedPathValid | ( | ) |
| ilWACException |
Definition at line 218 of file class.ilWACSignedPath.php.
References buildAndSetTokenInstance(), checkToken(), and getPathObject().
Here is the call graph for this function:| ilWACSignedPath::revalidatingFolderToken | ( | ) |
Definition at line 192 of file class.ilWACSignedPath.php.
References buildAndSetTokenInstance(), getType(), and saveFolderToken().
Here is the call graph for this function:
|
protected |
Definition at line 165 of file class.ilWACSignedPath.php.
References $expire, $id, $response, getCookieMaxLifetimeInSeconds(), and getTokenInstance().
Referenced by revalidatingFolderToken().
Here is the call graph for this function:
Here is the caller graph for this function:| ilWACSignedPath::setChecked | ( | $checked | ) |
| bool | $checked |
Definition at line 493 of file class.ilWACSignedPath.php.
References $checked.
Referenced by checkToken().
Here is the caller graph for this function:
|
static |
| int | $cookie_max_lifetime_in_seconds |
Definition at line 445 of file class.ilWACSignedPath.php.
References $cookie_max_lifetime_in_seconds, and ilWACException\MAX_LIFETIME.
Referenced by ilWACTokenTest\testFolderToken(), and ilWACTokenTest\testFolderTokenWithSecondFile().
Here is the caller graph for this function:| ilWACSignedPath::setPathObject | ( | ilWACPath | $path_object | ) |
| ilWACPath | $path_object |
Definition at line 315 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 276 of file class.ilWACSignedPath.php.
References $token_instance.
Referenced by buildAndSetTokenInstance().
Here is the caller graph for this function:
|
static |
| int | $token_max_lifetime_in_seconds |
Definition at line 419 of file class.ilWACSignedPath.php.
References $token_max_lifetime_in_seconds, and ilWACException\MAX_LIFETIME.
Referenced by ilCertificateGUI\certificateEditor(), ilObjPortfolioGUI\exportPDF(), ilOnScreenChatUserDataProvider\getDataByUserIds(), ilWACTokenTest\getModifiedSignedPath(), assQuestion\getSuggestedSolutionOutput(), ilChatroomViewGUI\getUserProfileImages(), ilObjTestGUI\printobject(), ilObjTestGUI\reviewobject(), ilObjCertificateSettingsGUI\settings(), and ilWACTokenTest\testFileToken().
Here is the caller graph for this function:| ilWACSignedPath::setType | ( | $type | ) |
| int | $type |
Definition at line 295 of file class.ilWACSignedPath.php.
References $type.
Referenced by isFolderSigned().
Here is the caller graph for this function:
|
static |
| string | $path_to_file |
| ilWACException |
Definition at line 233 of file class.ilWACSignedPath.php.
References getTokenMaxLifetimeInSeconds(), and ILIAS\FileDelivery\http().
Referenced by ilRTE\_replaceMediaObjectImageSrc(), ilCertificateGUI\certificateEditor(), ilPollBlockGUI\fillRow(), ilMediaCastTableGUI\fillRow(), ilObjStyleSheet\getContentStylePath(), ilDclMobRecordRepresentation\getHTML(), ilWACTokenTest\getModifiedSignedPath(), assImagemapQuestionGUI\getPreview(), ilPreviewGUI\getPreviewHTML(), assImagemapQuestionGUI\getSolutionOutput(), assMatchingQuestionGUI\getSolutionOutput(), assQuestion\getSuggestedSolutionOutput(), assImagemapQuestionGUI\getTestOutput(), ilObjMediaObject\getXML(), ilObjPortfolioBaseGUI\renderFullscreenHeader(), ilObjBlogGUI\renderFullscreenHeader(), ilObjCertificateSettingsGUI\settings(), ilObjMediaCastGUI\showGallery(), ilWACCheckingInstanceTest\testBasicWithFileSigning(), and ilWACTokenTest\testFileToken().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
| string | $start_file_path |
Definition at line 254 of file class.ilWACSignedPath.php.
References getCookieMaxLifetimeInSeconds(), and ILIAS\FileDelivery\http().
Referenced by ilSCORMPresentationGUI\frameset(), ilSCORM13Player\getPlayer(), ilSCORM13Player\pingSession(), ilSCORMPresentationGUI\pingSession(), ilObjMediaCastGUI\showGallery(), ilObjFileBasedLMGUI\showLearningModule(), ilWACCheckingInstanceTest\testBasicWithFolderSigning(), ilWACTokenTest\testCookieGeneration(), ilWACTokenTest\testFolderToken(), and ilWACTokenTest\testFolderTokenWithSecondFile().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 55 of file class.ilWACSignedPath.php.
Referenced by isChecked(), and setChecked().
|
staticprotected |
Definition at line 51 of file class.ilWACSignedPath.php.
Referenced by getCookieMaxLifetimeInSeconds(), and setCookieMaxLifetimeInSeconds().
|
private |
Definition at line 63 of file class.ilWACSignedPath.php.
Referenced by __construct().
|
private |
Definition at line 59 of file class.ilWACSignedPath.php.
|
protected |
Definition at line 35 of file class.ilWACSignedPath.php.
Referenced by getPathObject(), and setPathObject().
|
protected |
Definition at line 39 of file class.ilWACSignedPath.php.
Referenced by getTokenInstance(), and setTokenInstance().
|
staticprotected |
Definition at line 47 of file class.ilWACSignedPath.php.
Referenced by getTokenMaxLifetimeInSeconds(), and setTokenMaxLifetimeInSeconds().
|
protected |
Definition at line 43 of file class.ilWACSignedPath.php.
| const ilWACSignedPath::MAX_LIFETIME = 600 |
Definition at line 31 of file class.ilWACSignedPath.php.
| const ilWACSignedPath::TS_SUFFIX = 'ts' |
Definition at line 29 of file class.ilWACSignedPath.php.
| const ilWACSignedPath::TTL_SUFFIX = 'ttl' |
Definition at line 30 of file class.ilWACSignedPath.php.
| const ilWACSignedPath::WAC_TIMESTAMP_ID = 'il_wac_ts' |
Definition at line 27 of file class.ilWACSignedPath.php.
Referenced by ilWACPath\handleParameters(), and ilWACPath\setTimestamp().
| const ilWACSignedPath::WAC_TOKEN_ID = 'il_wac_token' |
Definition at line 26 of file class.ilWACSignedPath.php.
Referenced by ilWACPath\handleParameters(), and ilWACPath\setToken().
| const ilWACSignedPath::WAC_TTL_ID = 'il_wac_ttl' |
Definition at line 28 of file class.ilWACSignedPath.php.
Referenced by ilWACPath\handleParameters(), and ilWACPath\setTTL().