ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Class ilWACSignedPath. More...
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().
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().
|
protected |
null | $timestamp |
Definition at line 295 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 255 of file class.ilWACSignedPath.php.
References buildTokenInstance(), ilWACLog\getInstance(), getPathObject(), getTokenInstance(), setChecked(), and time.
Referenced by isFolderTokenValid(), and isSignedPathValid().
|
static |
Definition at line 353 of file class.ilWACSignedPath.php.
Referenced by ilObjSCORMInitData\getIliasScormVars(), ilSCORM13Player\getPlayer(), ilWACTokenTest\testFolderToken(), and ilWACTokenTest\testFolderTokenWithSecondFile().
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().
|
protected |
Definition at line 373 of file class.ilWACSignedPath.php.
References getPathObject(), and getType().
ilWACSignedPath::getSignedPath | ( | ) |
ilWACException |
Definition at line 69 of file class.ilWACSignedPath.php.
References $path, getPathObject(), getTokenInstance(), getType(), and ilWACException\WRONG_PATH_TYPE.
ilWACSignedPath::getTokenInstance | ( | ) |
Definition at line 206 of file class.ilWACSignedPath.php.
References $token_instance.
Referenced by checkToken(), getSignedPath(), and saveFolderToken().
|
static |
Definition at line 333 of file class.ilWACSignedPath.php.
Referenced by ilWACToken\__construct(), and ilWACTokenTest\testFileToken().
ilWACSignedPath::getType | ( | ) |
Definition at line 222 of file class.ilWACSignedPath.php.
References $type.
Referenced by buildTokenInstance(), getRelevantLifeTime(), getSignedPath(), and revalidatingFolderToken().
ilWACSignedPath::isChecked | ( | ) |
ilWACSignedPath::isFolderSigned | ( | ) |
Definition at line 96 of file class.ilWACSignedPath.php.
References buildAndSetTokenInstance(), buildTokenInstance(), getPathObject(), and setType().
Referenced by isFolderTokenValid().
ilWACSignedPath::isFolderTokenValid | ( | ) |
ilWACException |
Definition at line 113 of file class.ilWACSignedPath.php.
References checkToken(), and isFolderSigned().
ilWACSignedPath::isSignedPath | ( | ) |
Definition at line 153 of file class.ilWACSignedPath.php.
References getPathObject().
ilWACSignedPath::isSignedPathValid | ( | ) |
ilWACException |
Definition at line 162 of file class.ilWACSignedPath.php.
References buildAndSetTokenInstance(), checkToken(), and getPathObject().
ilWACSignedPath::revalidatingFolderToken | ( | ) |
Definition at line 138 of file class.ilWACSignedPath.php.
References buildAndSetTokenInstance(), ilWACLog\getInstance(), getType(), saveFolderToken(), and time.
|
protected |
Definition at line 122 of file class.ilWACSignedPath.php.
References ilWACLog\getInstance(), getPathObject(), getTokenInstance(), and time.
Referenced by revalidatingFolderToken().
ilWACSignedPath::setChecked | ( | $checked | ) |
boolean | $checked |
Definition at line 405 of file class.ilWACSignedPath.php.
References $checked.
Referenced by checkToken().
|
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.
Referenced by ilWACTokenTest\testFolderToken(), and ilWACTokenTest\testFolderTokenWithSecondFile().
ilWACSignedPath::setPathObject | ( | $path_object | ) |
ilWACPath | $path_object |
Definition at line 246 of file class.ilWACSignedPath.php.
References $path_object.
Referenced by __construct().
ilWACSignedPath::setTokenInstance | ( | ilWACToken | $token_instance | ) |
ilWACToken | $token_instance |
Definition at line 214 of file class.ilWACSignedPath.php.
References $token_instance.
Referenced by buildAndSetTokenInstance().
|
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 ilCertificateGUI\certificateEditor(), ilOnScreenChatGUI\getEmoticons(), ilWACTokenTest\getModifiedSignedPath(), assQuestion\getSuggestedSolutionOutput(), ilOnScreenChatGUI\getUserProfileImages(), ilObjTestGUI\printobject(), ilObjTestGUI\reviewobject(), ilObjCertificateSettingsGUI\settings(), and ilWACTokenTest\testFileToken().
ilWACSignedPath::setType | ( | $type | ) |
int | $type |
Definition at line 230 of file class.ilWACSignedPath.php.
References $type.
Referenced by isFolderSigned().
|
static |
$path_to_file |
ilWACException |
Definition at line 175 of file class.ilWACSignedPath.php.
References time.
Referenced by ilObjUser\_getPersonalPicturePath(), ilRTE\_replaceMediaObjectImageSrc(), ilCertificateGUI\certificateEditor(), ilMediaCastTableGUI\fillRow(), ilPollBlockGUI\fillRow(), ilObjStyleSheet\getContentStylePath(), ilOnScreenChatGUI\getEmoticons(), ilDclMobRecordRepresentation\getHTML(), ilWACTokenTest\getModifiedSignedPath(), assImagemapQuestionGUI\getPreview(), ilPreviewGUI\getPreviewHTML(), assMatchingQuestionGUI\getSolutionOutput(), assImagemapQuestionGUI\getSolutionOutput(), assQuestion\getSuggestedSolutionOutput(), assImagemapQuestionGUI\getTestOutput(), ilObjPortfolioBaseGUI\renderFullscreenHeader(), ilObjBlogGUI\renderFullscreenHeader(), ilObjCertificateSettingsGUI\settings(), ilObjMediaCastGUI\showGallery(), ilWACCheckingInstanceTest\testBasicWithFileSigning(), and ilWACTokenTest\testFileToken().
|
static |
$start_file_path | ||
\ilWACCookieInterface | null | $ilWACCookieInterface |
Definition at line 195 of file class.ilWACSignedPath.php.
References time.
Referenced by ilSCORMPresentationGUI\frameset(), ilSCORM13Player\getPlayer(), ilSCORM13Player\pingSession(), ilSCORMPresentationGUI\pingSession(), ilObjMediaCastGUI\showGallery(), ilObjFileBasedLMGUI\showLearningModule(), ilWACCheckingInstanceTest\testBasicWithFolderSigning(), ilWACTokenTest\testCookieGeneration(), ilWACTokenTest\testFolderToken(), and ilWACTokenTest\testFolderTokenWithSecondFile().
|
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 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 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.
const ilWACSignedPath::TYPE_FOLDER = 2 |
Definition at line 16 of file class.ilWACSignedPath.php.
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().