ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
Class ilWACSignedPath. More...
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 = 20 |
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 72 of file class.ilWACSignedPath.php.
References $cookieFactory, and setPathObject().
ilWACSignedPath::buildAndSetTokenInstance | ( | $timestamp = 0 , |
|
$ttl = 0 |
|||
) |
int | $timestamp | |
int | $ttl |
Definition at line 414 of file class.ilWACSignedPath.php.
References $timestamp, buildTokenInstance(), and setTokenInstance().
Referenced by isFolderSigned(), isSignedPathValid(), and revalidatingFolderToken().
|
protected |
int | $timestamp | |
int | $ttl |
ilWACException |
Definition at line 382 of file class.ilWACSignedPath.php.
References $client, $timestamp, ilWACException\CODE_NO_TYPE, getPathObject(), and getType().
Referenced by buildAndSetTokenInstance(), checkToken(), and isFolderSigned().
|
protected |
Definition at line 346 of file class.ilWACSignedPath.php.
References buildTokenInstance(), getPathObject(), and setChecked().
Referenced by isFolderTokenValid(), and isSignedPathValid().
|
static |
Definition at line 451 of file class.ilWACSignedPath.php.
Referenced by ilObjSCORMInitData\getIliasScormVars(), and ilSCORM13Player\getPlayer().
ilWACSignedPath::getPathObject | ( | ) |
Definition at line 326 of file class.ilWACSignedPath.php.
References $path_object.
Referenced by buildTokenInstance(), checkToken(), getRelevantLifeTime(), getSignedPath(), isFolderSigned(), isSignedPath(), isSignedPathValid(), revalidatingFolderToken(), and saveFolderToken().
|
protected |
Definition at line 477 of file class.ilWACSignedPath.php.
References getPathObject(), and getType().
ilWACSignedPath::getSignedPath | ( | ) |
ilWACException |
Definition at line 84 of file class.ilWACSignedPath.php.
References getPathObject(), getTokenInstance(), getType(), and ilWACException\WRONG_PATH_TYPE.
ilWACSignedPath::getTokenInstance | ( | ) |
Definition at line 287 of file class.ilWACSignedPath.php.
References $token_instance.
Referenced by getSignedPath(), revalidatingFolderToken(), and saveFolderToken().
|
static |
Definition at line 426 of file class.ilWACSignedPath.php.
Referenced by ilWACToken\__construct(), ILIAS\OnScreenChat\Repository\Subscriber\getDataByUserIds(), and ilWACTokenTest\testFileToken().
ilWACSignedPath::getType | ( | ) |
Definition at line 306 of file class.ilWACSignedPath.php.
References $type.
Referenced by buildTokenInstance(), getRelevantLifeTime(), getSignedPath(), and revalidatingFolderToken().
ilWACSignedPath::isChecked | ( | ) |
ilWACSignedPath::isFolderSigned | ( | ) |
Definition at line 115 of file class.ilWACSignedPath.php.
References $name, buildAndSetTokenInstance(), buildTokenInstance(), getPathObject(), and setType().
Referenced by isFolderTokenValid().
ilWACSignedPath::isFolderTokenValid | ( | ) |
ilWACException |
Definition at line 149 of file class.ilWACSignedPath.php.
References checkToken(), and isFolderSigned().
ilWACSignedPath::isSignedPath | ( | ) |
Definition at line 228 of file class.ilWACSignedPath.php.
References getPathObject().
ilWACSignedPath::isSignedPathValid | ( | ) |
ilWACException |
Definition at line 239 of file class.ilWACSignedPath.php.
References buildAndSetTokenInstance(), checkToken(), and getPathObject().
ilWACSignedPath::revalidatingFolderToken | ( | ) |
Definition at line 209 of file class.ilWACSignedPath.php.
References buildAndSetTokenInstance(), getPathObject(), getTokenInstance(), getType(), and saveFolderToken().
|
protected |
Definition at line 162 of file class.ilWACSignedPath.php.
References getPathObject(), and getTokenInstance().
Referenced by revalidatingFolderToken().
ilWACSignedPath::setChecked | ( | $checked | ) |
bool | $checked |
Definition at line 512 of file class.ilWACSignedPath.php.
References $checked.
Referenced by checkToken().
|
static |
int | $cookie_max_lifetime_in_seconds |
Definition at line 464 of file class.ilWACSignedPath.php.
References $cookie_max_lifetime_in_seconds, and ilWACException\MAX_LIFETIME.
ilWACSignedPath::setPathObject | ( | ilWACPath | $path_object | ) |
ilWACPath | $path_object |
Definition at line 336 of file class.ilWACSignedPath.php.
References $path_object.
Referenced by __construct().
ilWACSignedPath::setTokenInstance | ( | ilWACToken | $token_instance | ) |
ilWACToken | $token_instance |
Definition at line 297 of file class.ilWACSignedPath.php.
References $token_instance.
Referenced by buildAndSetTokenInstance().
|
static |
int | $token_max_lifetime_in_seconds |
Definition at line 438 of file class.ilWACSignedPath.php.
References $token_max_lifetime_in_seconds, and ilWACException\MAX_LIFETIME.
Referenced by ilCertificateSettingsFormRepository\createForm(), ilObjPortfolioGUI\exportPDF(), ILIAS\OnScreenChat\Repository\Subscriber\getDataByUserIds(), ilWACTokenTest\getModifiedSignedPath(), assQuestion\getSuggestedSolutionOutput(), ilChatroomViewGUI\lostConnection(), ilObjTestGUI\printobject(), ilObjTestGUI\reviewobject(), ilObjCertificateSettingsGUI\settings(), and ilWACTokenTest\testFileToken().
ilWACSignedPath::setType | ( | $type | ) |
int | $type |
Definition at line 316 of file class.ilWACSignedPath.php.
References $type.
Referenced by isFolderSigned().
|
static |
string | $path_to_file |
ilWACException |
Definition at line 254 of file class.ilWACSignedPath.php.
References ILIAS\FileDelivery\http().
Referenced by ilObjUser\_getPersonalPicturePath(), ilRTE\_replaceMediaObjectImageSrc(), ilCertificateSettingsFormRepository\createForm(), ilMediaCastTableGUI\fillRow(), ilPollBlockGUI\fillRow(), ilMediaPoolTableGUI\fillRow(), ilObjStyleSheet\getContentStylePath(), ilPublicUserProfileGUI\getEmbeddable(), ilDclMobRecordRepresentation\getHTML(), ilBadgeRenderer\getHTML(), ilWACTokenTest\getModifiedSignedPath(), assImagemapQuestionGUI\getPreview(), ilPreviewGUI\getPreviewHTML(), assMatchingQuestionGUI\getSolutionOutput(), assQuestion\getSuggestedSolutionOutput(), assImagemapQuestionGUI\getTestOutput(), ilObjMediaObject\getXML(), ilUserCertificateGUI\listCertificates(), ilObjPortfolioBaseGUI\renderFullscreenHeader(), ilObjBlogGUI\renderFullscreenHeader(), ilObjCertificateSettingsGUI\settings(), ilObjMediaCastGUI\showGallery(), assImagemapQuestionGUI\supportsIntermediateSolutionOutput(), ilWACCheckingInstanceTest\testBasicWithFileSigning(), and ilWACTokenTest\testFileToken().
|
static |
string | $start_file_path |
Definition at line 275 of file class.ilWACSignedPath.php.
References ILIAS\FileDelivery\http().
Referenced by ilSCORMPresentationGUI\frameset(), ilSCORM13Player\getPlayer(), ilExerciseManagementGUI\openSubmissionViewObject(), ilSCORM13Player\pingSession(), ilSCORMPresentationGUI\pingSession(), ilObjFileBasedLMGUI\showLearningModule(), ilWACCheckingInstanceTest\testBasicWithFolderSigning(), and ilWACTokenTest\testCookieGeneration().
|
protected |
Definition at line 54 of file class.ilWACSignedPath.php.
Referenced by isChecked(), and setChecked().
|
staticprotected |
Definition at line 50 of file class.ilWACSignedPath.php.
Referenced by setCookieMaxLifetimeInSeconds().
|
private |
Definition at line 62 of file class.ilWACSignedPath.php.
Referenced by __construct().
|
private |
Definition at line 58 of file class.ilWACSignedPath.php.
|
protected |
Definition at line 34 of file class.ilWACSignedPath.php.
Referenced by getPathObject(), and setPathObject().
|
protected |
Definition at line 38 of file class.ilWACSignedPath.php.
Referenced by getTokenInstance(), and setTokenInstance().
|
staticprotected |
Definition at line 46 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 30 of file class.ilWACSignedPath.php.
const ilWACSignedPath::TS_SUFFIX = 'ts' |
Definition at line 28 of file class.ilWACSignedPath.php.
const ilWACSignedPath::TTL_SUFFIX = 'ttl' |
Definition at line 29 of file class.ilWACSignedPath.php.
const ilWACSignedPath::WAC_TIMESTAMP_ID = 'il_wac_ts' |
Definition at line 26 of file class.ilWACSignedPath.php.
Referenced by ilWACPath\handleParameters(), and ilWACPath\setTimestamp().
const ilWACSignedPath::WAC_TOKEN_ID = 'il_wac_token' |
Definition at line 25 of file class.ilWACSignedPath.php.
Referenced by ilWACPath\handleParameters(), and ilWACPath\setToken().
const ilWACSignedPath::WAC_TTL_ID = 'il_wac_ttl' |
Definition at line 27 of file class.ilWACSignedPath.php.
Referenced by ilWACPath\handleParameters(), and ilWACPath\setTTL().