ILIAS
trunk Revision v11.0_alpha-1761-g6dbbfa7b760
|
Class ilWACSignedPath. More...
Public Member Functions | |
__construct (ilWACPath $ilWACPath, private GlobalHttpState $httpService, private CookieFactory $cookieFactory) | |
ilWACSignedPath constructor. More... | |
getSignedPath () | |
isFolderSigned () | |
isFolderTokenValid () | |
revalidatingFolderToken () | |
isSignedPath () | |
isSignedPathValid () | |
getTokenInstance () | |
setTokenInstance (ilWACToken $token_instance) | |
getType () | |
setType (int $type) | |
getPathObject () | |
setPathObject (ilWACPath $path_object) | |
buildAndSetTokenInstance (int $timestamp=0, int $ttl=0) | |
isChecked () | |
setChecked (bool $checked) | |
Static Public Member Functions | |
static | signFile (string $path_to_file) |
static | signFolderOfStartFile (string $start_file_path) |
static | getTokenMaxLifetimeInSeconds () |
static | setTokenMaxLifetimeInSeconds (int $token_max_lifetime_in_seconds) |
static | getCookieMaxLifetimeInSeconds () |
static | setCookieMaxLifetimeInSeconds (int $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 (int $timestamp=0, int $ttl=0) | |
getRelevantLifeTime () | |
Protected Attributes | |
ilWACPath | $path_object = null |
ilWACToken | $token_instance = null |
int | $type = PathType::FILE |
bool | $checked = false |
Static Protected Attributes | |
static int | $token_max_lifetime_in_seconds = 5 |
static int | $cookie_max_lifetime_in_seconds = 300 |
ilWACSignedPath::__construct | ( | ilWACPath | $ilWACPath, |
private GlobalHttpState | $httpService, | ||
private CookieFactory | $cookieFactory | ||
) |
ilWACSignedPath constructor.
Definition at line 50 of file class.ilWACSignedPath.php.
References setPathObject().
ilWACSignedPath::buildAndSetTokenInstance | ( | int | $timestamp = 0 , |
int | $ttl = 0 |
||
) |
Definition at line 319 of file class.ilWACSignedPath.php.
References $timestamp, buildTokenInstance(), and setTokenInstance().
Referenced by isFolderSigned(), isSignedPathValid(), and revalidatingFolderToken().
|
protected |
ilWACException |
Definition at line 297 of file class.ilWACSignedPath.php.
References $client, $path, $timestamp, ilWACException\CODE_NO_TYPE, getPathObject(), and getType().
Referenced by buildAndSetTokenInstance(), checkToken(), and isFolderSigned().
|
protected |
Definition at line 265 of file class.ilWACSignedPath.php.
References buildTokenInstance(), getPathObject(), and setChecked().
Referenced by isFolderTokenValid(), and isSignedPathValid().
|
static |
Definition at line 341 of file class.ilWACSignedPath.php.
Referenced by ilObjSCORMInitData\getIliasScormVars(), and ilSCORM13PlayerGUI\getPlayer().
ilWACSignedPath::getPathObject | ( | ) |
Definition at line 252 of file class.ilWACSignedPath.php.
References $path_object.
Referenced by buildTokenInstance(), checkToken(), getRelevantLifeTime(), getSignedPath(), isFolderSigned(), isSignedPath(), isSignedPathValid(), revalidatingFolderToken(), and saveFolderToken().
|
protected |
Definition at line 359 of file class.ilWACSignedPath.php.
References getPathObject(), and getType().
ilWACSignedPath::getSignedPath | ( | ) |
ilWACException |
Definition at line 58 of file class.ilWACSignedPath.php.
References $path, getPathObject(), getTokenInstance(), getType(), and ilWACException\WRONG_PATH_TYPE.
ilWACSignedPath::getTokenInstance | ( | ) |
Definition at line 232 of file class.ilWACSignedPath.php.
References $token_instance.
Referenced by getSignedPath(), revalidatingFolderToken(), and saveFolderToken().
|
static |
Definition at line 324 of file class.ilWACSignedPath.php.
Referenced by ilWACToken\__construct(), ILIAS\OnScreenChat\Repository\Subscriber\getDataByUserIds(), and ilWACTokenTest\testFileToken().
ilWACSignedPath::getType | ( | ) |
Definition at line 242 of file class.ilWACSignedPath.php.
References $type.
Referenced by buildTokenInstance(), getRelevantLifeTime(), getSignedPath(), and revalidatingFolderToken().
ilWACSignedPath::isChecked | ( | ) |
ilWACSignedPath::isFolderSigned | ( | ) |
Definition at line 84 of file class.ilWACSignedPath.php.
References buildAndSetTokenInstance(), buildTokenInstance(), getPathObject(), ILIAS\Repository\int(), and setType().
Referenced by isFolderTokenValid().
ilWACSignedPath::isFolderTokenValid | ( | ) |
ilWACException |
Definition at line 115 of file class.ilWACSignedPath.php.
References checkToken(), and isFolderSigned().
ilWACSignedPath::isSignedPath | ( | ) |
Definition at line 185 of file class.ilWACSignedPath.php.
References getPathObject().
ilWACSignedPath::isSignedPathValid | ( | ) |
ilWACException |
Definition at line 194 of file class.ilWACSignedPath.php.
References buildAndSetTokenInstance(), checkToken(), and getPathObject().
ilWACSignedPath::revalidatingFolderToken | ( | ) |
Definition at line 170 of file class.ilWACSignedPath.php.
References buildAndSetTokenInstance(), getPathObject(), getTokenInstance(), getType(), and saveFolderToken().
|
protected |
Definition at line 124 of file class.ilWACSignedPath.php.
References $_SERVER, $id, $path, getPathObject(), getTokenInstance(), and null.
Referenced by revalidatingFolderToken().
ilWACSignedPath::setChecked | ( | bool | $checked | ) |
Definition at line 379 of file class.ilWACSignedPath.php.
References $checked.
Referenced by checkToken().
|
static |
Definition at line 351 of file class.ilWACSignedPath.php.
References $cookie_max_lifetime_in_seconds, and ilWACException\MAX_LIFETIME.
ilWACSignedPath::setPathObject | ( | ilWACPath | $path_object | ) |
Definition at line 257 of file class.ilWACSignedPath.php.
References $path_object.
Referenced by __construct().
ilWACSignedPath::setTokenInstance | ( | ilWACToken | $token_instance | ) |
Definition at line 237 of file class.ilWACSignedPath.php.
References $token_instance.
Referenced by buildAndSetTokenInstance().
|
static |
Definition at line 333 of file class.ilWACSignedPath.php.
References $token_max_lifetime_in_seconds, and ilWACException\MAX_LIFETIME.
Referenced by ILIAS\OnScreenChat\Repository\Subscriber\getDataByUserIds(), ilWACTokenTest\getModifiedSignedPath(), assQuestion\getSuggestedSolutionOutput(), ilChatroomViewGUI\lostConnection(), and ilWACTokenTest\testFileToken().
ilWACSignedPath::setType | ( | int | $type | ) |
Definition at line 247 of file class.ilWACSignedPath.php.
References $type.
Referenced by isFolderSigned().
|
static |
ilWACException |
Definition at line 206 of file class.ilWACSignedPath.php.
References $DIC.
Referenced by ilCertificateSettingsFormRepository\__construct(), assImagemapQuestionGUI\areaEditor(), ilObjCertificateSettings\getBackgroundImageIdentification(), ilDclMobRecordRepresentation\getHTML(), ILIAS\Badge\ilBadgeImage\getImageFromResourceId(), ilBadgeImageTemplate\getImageFromResourceId(), ILIAS\MediaObjects\MediaObjectManager\getLocalSrc(), ilWACTokenTest\getModifiedSignedPath(), ILIAS\Style\Content\Style\StyleRepo\getPath(), assImagemapQuestionGUI\getPreview(), assImagemapQuestionGUI\getSolutionOutput(), assQuestion\getSuggestedSolutionOutput(), assImagemapQuestionGUI\getTestOutput(), ilObjMediaObject\getXML(), ilUserCertificateGUI\listCertificates(), ilTestHTMLGenerator\makeHtmlDocument(), assMatchingQuestionGUI\renderSolutionOutput(), and ilWACTokenTest\testFileToken().
|
static |
Definition at line 223 of file class.ilWACSignedPath.php.
References $DIC.
Referenced by ilSCORMPresentationGUI\frameset(), ilSCORM13PlayerGUI\getPlayer(), ilExerciseManagementGUI\openSubmissionViewObject(), ilSCORMPresentationGUI\pingSession(), ilSCORM13PlayerGUI\pingSession(), ilObjFileBasedLMGUI\setStartFile(), and ilWACTokenTest\testCookieGeneration().
|
protected |
Definition at line 45 of file class.ilWACSignedPath.php.
Referenced by isChecked(), and setChecked().
|
staticprotected |
Definition at line 44 of file class.ilWACSignedPath.php.
Referenced by setCookieMaxLifetimeInSeconds().
Definition at line 40 of file class.ilWACSignedPath.php.
Referenced by getPathObject(), and setPathObject().
|
protected |
Definition at line 41 of file class.ilWACSignedPath.php.
Referenced by getTokenInstance(), and setTokenInstance().
|
staticprotected |
Definition at line 43 of file class.ilWACSignedPath.php.
Referenced by setTokenMaxLifetimeInSeconds().
|
protected |
Definition at line 42 of file class.ilWACSignedPath.php.
const ilWACSignedPath::MAX_LIFETIME = 600 |
Definition at line 38 of file class.ilWACSignedPath.php.
const ilWACSignedPath::TS_SUFFIX = 'ts' |
Definition at line 36 of file class.ilWACSignedPath.php.
const ilWACSignedPath::TTL_SUFFIX = 'ttl' |
Definition at line 37 of file class.ilWACSignedPath.php.
const ilWACSignedPath::WAC_TIMESTAMP_ID = 'il_wac_ts' |
Definition at line 34 of file class.ilWACSignedPath.php.
Referenced by ilWACPath\handleParameters(), and ilWACPath\setTimestamp().
const ilWACSignedPath::WAC_TOKEN_ID = 'il_wac_token' |
Definition at line 33 of file class.ilWACSignedPath.php.
Referenced by ilWACPath\handleParameters(), and ilWACPath\setToken().
const ilWACSignedPath::WAC_TTL_ID = 'il_wac_ttl' |
Definition at line 35 of file class.ilWACSignedPath.php.
Referenced by ilWACPath\handleParameters(), and ilWACPath\setTTL().