ILIAS  trunk Revision v11.0_alpha-1761-g6dbbfa7b760
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilWACSignedPath Class Reference

Class ilWACSignedPath. More...

+ Collaboration diagram for ilWACSignedPath:

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
 

Detailed Description

Class ilWACSignedPath.

Author
Fabian Schmid fs@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch
Version
1.0.0

Definition at line 31 of file class.ilWACSignedPath.php.

Constructor & Destructor Documentation

◆ __construct()

ilWACSignedPath::__construct ( ilWACPath  $ilWACPath,
private GlobalHttpState  $httpService,
private CookieFactory  $cookieFactory 
)

ilWACSignedPath constructor.

Definition at line 50 of file class.ilWACSignedPath.php.

References setPathObject().

51  {
52  $this->setPathObject($ilWACPath);
53  }
setPathObject(ilWACPath $path_object)
+ Here is the call graph for this function:

Member Function Documentation

◆ buildAndSetTokenInstance()

ilWACSignedPath::buildAndSetTokenInstance ( int  $timestamp = 0,
int  $ttl = 0 
)
Exceptions

Definition at line 319 of file class.ilWACSignedPath.php.

References $timestamp, buildTokenInstance(), and setTokenInstance().

Referenced by isFolderSigned(), isSignedPathValid(), and revalidatingFolderToken().

319  : void
320  {
321  $this->setTokenInstance($this->buildTokenInstance($timestamp, $ttl));
322  }
setTokenInstance(ilWACToken $token_instance)
buildTokenInstance(int $timestamp=0, int $ttl=0)
foreach($mandatory_scripts as $file) $timestamp
Definition: buildRTE.php:70
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ buildTokenInstance()

ilWACSignedPath::buildTokenInstance ( int  $timestamp = 0,
int  $ttl = 0 
)
protected
Exceptions
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().

297  : \ilWACToken
298  {
299  if ($this->getType() === 0) {
301  }
302 
303  $path = match ($this->getType()) {
304  PathType::FOLDER => $this->getPathObject()->getSecurePath(),
305  default => $this->getPathObject()->getPathWithoutQuery(),
306  };
307 
308  $client = $this->getPathObject()->getClient();
309  $timestamp = $timestamp !== 0 ? $timestamp : $this->getPathObject()->getTimestamp();
310  $ttl = $ttl !== 0 ? $ttl : $this->getPathObject()->getTTL();
311 
312  return new ilWACToken($path, $client, $timestamp, $ttl);
313  }
$path
Definition: ltiservices.php:29
$client
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
foreach($mandatory_scripts as $file) $timestamp
Definition: buildRTE.php:70
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ checkToken()

ilWACSignedPath::checkToken ( )
protected
Exceptions

Definition at line 265 of file class.ilWACSignedPath.php.

References buildTokenInstance(), getPathObject(), and setChecked().

Referenced by isFolderTokenValid(), and isSignedPathValid().

265  : bool
266  {
267  $request_token_string = $this->getPathObject()->getToken();
268  $request_ttl = $this->getPathObject()->getTTL();
269  $request_timestamp = $this->getPathObject()->getTimestamp();
270  $current_timestamp = time();
271 
272  $timestamp_valid = ($current_timestamp < ($request_timestamp + $request_ttl));
273 
274  if (!$timestamp_valid) {
275  $this->setChecked(true);
276 
277  return false;
278  }
279 
280  $simulated_token = $this->buildTokenInstance($request_timestamp, $request_ttl);
281  $simulated_token_string = $simulated_token->getToken();
282  $token_valid = ($simulated_token_string === $request_token_string);
283 
284  if (!$token_valid) {
285  $this->setChecked(true);
286 
287  return false;
288  }
289 
290  return true;
291  }
buildTokenInstance(int $timestamp=0, int $ttl=0)
setChecked(bool $checked)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getCookieMaxLifetimeInSeconds()

static ilWACSignedPath::getCookieMaxLifetimeInSeconds ( )
static

Definition at line 341 of file class.ilWACSignedPath.php.

Referenced by ilObjSCORMInitData\getIliasScormVars(), and ilSCORM13PlayerGUI\getPlayer().

341  : int
342  {
343  return self::$cookie_max_lifetime_in_seconds;
344  }
+ Here is the caller graph for this function:

◆ getPathObject()

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().

252  : ?\ilWACPath
253  {
254  return $this->path_object;
255  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
+ Here is the caller graph for this function:

◆ getRelevantLifeTime()

ilWACSignedPath::getRelevantLifeTime ( )
protected

Definition at line 359 of file class.ilWACSignedPath.php.

References getPathObject(), and getType().

359  : int
360  {
361  $request_ttl = $this->getPathObject()->getTTL();
362  if ($request_ttl > 0) {
363  return $request_ttl;
364  }
365  $life_time = match ($this->getType()) {
366  PathType::FOLDER => self::getCookieMaxLifetimeInSeconds(),
367  PathType::FILE => self::getTokenMaxLifetimeInSeconds(),
368  default => 0,
369  };
370 
371  return $life_time;
372  }
+ Here is the call graph for this function:

◆ getSignedPath()

ilWACSignedPath::getSignedPath ( )
Exceptions
ilWACException

Definition at line 58 of file class.ilWACSignedPath.php.

References $path, getPathObject(), getTokenInstance(), getType(), and ilWACException\WRONG_PATH_TYPE.

58  : string
59  {
60  if ($this->getType() !== PathType::FILE) {
62  }
63  if ($this->getPathObject()->getOriginalRequest() === '' || $this->getPathObject()->getOriginalRequest() === '0') {
64  return '';
65  }
66  if (!$this->getPathObject()->fileExists()) {
67  // return $this->getPathObject()->getOriginalRequest();
68  }
69 
70  if (strpos($this->getPathObject()->getPath(), '?')) {
71  $path = $this->getPathObject()->getPath() . '&' . self::WAC_TOKEN_ID . '='
72  . $this->getTokenInstance()->getToken();
73  } else {
74  $path = $this->getPathObject()->getPath() . '?' . self::WAC_TOKEN_ID . '='
75  . $this->getTokenInstance()->getToken();
76  }
77 
78  $path .= '&' . self::WAC_TTL_ID . '=' . $this->getTokenInstance()->getTTL();
79 
80  return $path . '&' . self::WAC_TIMESTAMP_ID . '='
81  . $this->getTokenInstance()->getTimestamp();
82  }
$path
Definition: ltiservices.php:29
+ Here is the call graph for this function:

◆ getTokenInstance()

ilWACSignedPath::getTokenInstance ( )

Definition at line 232 of file class.ilWACSignedPath.php.

References $token_instance.

Referenced by getSignedPath(), revalidatingFolderToken(), and saveFolderToken().

232  : ?\ilWACToken
233  {
234  return $this->token_instance;
235  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
+ Here is the caller graph for this function:

◆ getTokenMaxLifetimeInSeconds()

static ilWACSignedPath::getTokenMaxLifetimeInSeconds ( )
static

Definition at line 324 of file class.ilWACSignedPath.php.

Referenced by ilWACToken\__construct(), ILIAS\OnScreenChat\Repository\Subscriber\getDataByUserIds(), and ilWACTokenTest\testFileToken().

324  : int
325  {
326  return self::$token_max_lifetime_in_seconds;
327  }
+ Here is the caller graph for this function:

◆ getType()

ilWACSignedPath::getType ( )

Definition at line 242 of file class.ilWACSignedPath.php.

References $type.

Referenced by buildTokenInstance(), getRelevantLifeTime(), getSignedPath(), and revalidatingFolderToken().

242  : int
243  {
244  return $this->type;
245  }
+ Here is the caller graph for this function:

◆ isChecked()

ilWACSignedPath::isChecked ( )

Definition at line 374 of file class.ilWACSignedPath.php.

References $checked.

374  : bool
375  {
376  return $this->checked;
377  }

◆ isFolderSigned()

ilWACSignedPath::isFolderSigned ( )

Definition at line 84 of file class.ilWACSignedPath.php.

References buildAndSetTokenInstance(), buildTokenInstance(), getPathObject(), ILIAS\Repository\int(), and setType().

Referenced by isFolderTokenValid().

84  : bool
85  {
86  $this->httpService->cookieJar();
87 
88  $this->setType(PathType::FOLDER);
89  $plain_token = $this->buildTokenInstance();
90  $name = $plain_token->getHashedId();
91 
92  // Token
93  $default_token = '';
94  $token_cookie_value = $this->httpService->request()->getCookieParams()[$name] ?? $default_token;
95  // Timestamp
96  $default_timestamp = 0;
97  $timestamp_cookie_value = $this->httpService->request()->getCookieParams()[$name . self::TS_SUFFIX] ?? $default_timestamp;
98  $timestamp_cookie_value = (int) $timestamp_cookie_value;
99  // TTL
100  $default_ttl = 0;
101  $ttl_cookie_value = $this->httpService->request()->getCookieParams()[$name . self::TTL_SUFFIX] ?? $default_ttl;
102  $ttl_cookie_value = (int) $ttl_cookie_value;
103 
104  $this->getPathObject()->setToken($token_cookie_value);
105  $this->getPathObject()->setTimestamp($timestamp_cookie_value);
106  $this->getPathObject()->setTTL($ttl_cookie_value);
107  $this->buildAndSetTokenInstance();
108 
109  return $this->getPathObject()->hasToken();
110  }
buildAndSetTokenInstance(int $timestamp=0, int $ttl=0)
buildTokenInstance(int $timestamp=0, int $ttl=0)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isFolderTokenValid()

ilWACSignedPath::isFolderTokenValid ( )
Exceptions
ilWACException

Definition at line 115 of file class.ilWACSignedPath.php.

References checkToken(), and isFolderSigned().

115  : bool
116  {
117  if (!$this->isFolderSigned()) {
118  return false;
119  }
120 
121  return $this->checkToken();
122  }
+ Here is the call graph for this function:

◆ isSignedPath()

ilWACSignedPath::isSignedPath ( )

Definition at line 185 of file class.ilWACSignedPath.php.

References getPathObject().

185  : bool
186  {
187  return ($this->getPathObject()->hasToken() && $this->getPathObject()->hasTimestamp()
188  && $this->getPathObject()->hasTTL());
189  }
+ Here is the call graph for this function:

◆ isSignedPathValid()

ilWACSignedPath::isSignedPathValid ( )
Exceptions
ilWACException

Definition at line 194 of file class.ilWACSignedPath.php.

References buildAndSetTokenInstance(), checkToken(), and getPathObject().

194  : bool
195  {
196  $this->buildAndSetTokenInstance($this->getPathObject()->getTimestamp(), $this->getPathObject()->getTTL());
197 
198  return $this->checkToken();
199  }
buildAndSetTokenInstance(int $timestamp=0, int $ttl=0)
+ Here is the call graph for this function:

◆ revalidatingFolderToken()

ilWACSignedPath::revalidatingFolderToken ( )

Definition at line 170 of file class.ilWACSignedPath.php.

References buildAndSetTokenInstance(), getPathObject(), getTokenInstance(), getType(), and saveFolderToken().

170  : bool
171  {
172  if ($this->getType() !== PathType::FOLDER) {
173  return false;
174  }
175  $this->buildAndSetTokenInstance(time(), $this->getPathObject()->getTTL());
176  $this->getPathObject()->setTTL($this->getTokenInstance()->getTTL());
177  $this->getPathObject()->setTimestamp($this->getTokenInstance()->getTimestamp());
178  $this->getPathObject()->setToken($this->getTokenInstance()->getToken());
179 
180  $this->saveFolderToken();
181 
182  return true;
183  }
buildAndSetTokenInstance(int $timestamp=0, int $ttl=0)
+ Here is the call graph for this function:

◆ saveFolderToken()

ilWACSignedPath::saveFolderToken ( )
protected

Definition at line 124 of file class.ilWACSignedPath.php.

References $_SERVER, $id, $path, getPathObject(), getTokenInstance(), and null.

Referenced by revalidatingFolderToken().

124  : void
125  {
126  $ttl = $this->getPathObject()->getTTL();
127  $cookie_lifetime = $ttl !== 0 ? $ttl : self::getCookieMaxLifetimeInSeconds();
128  $id = $this->getTokenInstance()->getHashedId();
129  $expire = time() + $cookie_lifetime + 3600;
130  $secure = true;
131  $domain = null;
132  $http_only = true;
133  $path = '/';
134 
135  $tokenCookie = $this->cookieFactory->create($id, $this->getTokenInstance()->getToken())
136  ->withExpires($expire)
137  ->withPath($path)
138  ->withSecure($secure)
139  ->withDomain($domain)
140  ->withHttpOnly($http_only);
141 
142  $timestampCookie = $this->cookieFactory->create($id . self::TS_SUFFIX, time())
143  ->withExpires($expire)
144  ->withPath($path)
145  ->withDomain($domain)
146  ->withSecure($secure)
147  ->withHttpOnly($http_only);
148 
149  $ttlCookie = $this->cookieFactory->create($id . self::TTL_SUFFIX, $cookie_lifetime)
150  ->withExpires($expire)
151  ->withPath($path)
152  ->withDomain($domain)
153  ->withSecure($secure)
154  ->withHttpOnly($http_only);
155 
156  $jar = $this->httpService->cookieJar()->with($tokenCookie)
157  ->with($timestampCookie)
158  ->with($ttlCookie);
159 
160  // FIX: currently the cookies are never stored, we must use setcookie
161  foreach ($jar->getAll() as $cookie) {
162  setcookie(
163  $cookie->getName(),
164  (string) $cookie->getValue(),
165  ['expires' => $cookie->getExpires(), 'path' => $cookie->getPath() ?? '/', 'domain' => $cookie->getDomain() ?? $_SERVER['REQUEST_URI'], 'secure' => $cookie->getSecure(), 'httponly' => $cookie->getHttpOnly()]
166  );
167  }
168  }
$path
Definition: ltiservices.php:29
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
$_SERVER['HTTP_HOST']
Definition: raiseError.php:26
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setChecked()

ilWACSignedPath::setChecked ( bool  $checked)

Definition at line 379 of file class.ilWACSignedPath.php.

References $checked.

Referenced by checkToken().

379  : void
380  {
381  $this->checked = $checked;
382  }
+ Here is the caller graph for this function:

◆ setCookieMaxLifetimeInSeconds()

static ilWACSignedPath::setCookieMaxLifetimeInSeconds ( int  $cookie_max_lifetime_in_seconds)
static
Exceptions

Definition at line 351 of file class.ilWACSignedPath.php.

References $cookie_max_lifetime_in_seconds, and ilWACException\MAX_LIFETIME.

351  : void
352  {
353  if ($cookie_max_lifetime_in_seconds > self::MAX_LIFETIME) {
355  }
356  self::$cookie_max_lifetime_in_seconds = $cookie_max_lifetime_in_seconds;
357  }
static int $cookie_max_lifetime_in_seconds

◆ setPathObject()

ilWACSignedPath::setPathObject ( ilWACPath  $path_object)

Definition at line 257 of file class.ilWACSignedPath.php.

References $path_object.

Referenced by __construct().

257  : void
258  {
259  $this->path_object = $path_object;
260  }
+ Here is the caller graph for this function:

◆ setTokenInstance()

ilWACSignedPath::setTokenInstance ( ilWACToken  $token_instance)

Definition at line 237 of file class.ilWACSignedPath.php.

References $token_instance.

Referenced by buildAndSetTokenInstance().

237  : void
238  {
239  $this->token_instance = $token_instance;
240  }
+ Here is the caller graph for this function:

◆ setTokenMaxLifetimeInSeconds()

static ilWACSignedPath::setTokenMaxLifetimeInSeconds ( int  $token_max_lifetime_in_seconds)
static
Exceptions

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().

333  : void
334  {
335  if ($token_max_lifetime_in_seconds > self::MAX_LIFETIME) {
337  }
338  self::$token_max_lifetime_in_seconds = $token_max_lifetime_in_seconds;
339  }
static int $token_max_lifetime_in_seconds
+ Here is the caller graph for this function:

◆ setType()

ilWACSignedPath::setType ( int  $type)

Definition at line 247 of file class.ilWACSignedPath.php.

References $type.

Referenced by isFolderSigned().

247  : void
248  {
249  $this->type = $type;
250  }
+ Here is the caller graph for this function:

◆ signFile()

static ilWACSignedPath::signFile ( string  $path_to_file)
static
Exceptions
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().

206  : string
207  {
208  global $DIC;
209  if ($path_to_file === '' || $path_to_file === '0') {
210  return '';
211  }
212  $ilWACPath = new ilWACPath($path_to_file);
213  if ($ilWACPath->getClient() === '' || $ilWACPath->getClient() === '0') {
214  return $path_to_file;
215  }
216  $obj = new self($ilWACPath, $DIC->http(), new CookieFactoryImpl());
217  $obj->setType(PathType::FILE);
218  $obj->buildAndSetTokenInstance(time(), self::getTokenMaxLifetimeInSeconds());
219 
220  return $obj->getSignedPath();
221  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
global $DIC
Definition: shib_login.php:22
+ Here is the caller graph for this function:

◆ signFolderOfStartFile()

static ilWACSignedPath::signFolderOfStartFile ( string  $start_file_path)
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().

223  : void
224  {
225  global $DIC;
226  $obj = new self(new ilWACPath($start_file_path), $DIC->http(), new CookieFactoryImpl());
227  $obj->setType(PathType::FOLDER);
228  $obj->buildAndSetTokenInstance(time(), self::getCookieMaxLifetimeInSeconds());
229  $obj->saveFolderToken();
230  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
global $DIC
Definition: shib_login.php:22
+ Here is the caller graph for this function:

Field Documentation

◆ $checked

bool ilWACSignedPath::$checked = false
protected

Definition at line 45 of file class.ilWACSignedPath.php.

Referenced by isChecked(), and setChecked().

◆ $cookie_max_lifetime_in_seconds

int ilWACSignedPath::$cookie_max_lifetime_in_seconds = 300
staticprotected

Definition at line 44 of file class.ilWACSignedPath.php.

Referenced by setCookieMaxLifetimeInSeconds().

◆ $path_object

ilWACPath ilWACSignedPath::$path_object = null
protected

Definition at line 40 of file class.ilWACSignedPath.php.

Referenced by getPathObject(), and setPathObject().

◆ $token_instance

ilWACToken ilWACSignedPath::$token_instance = null
protected

Definition at line 41 of file class.ilWACSignedPath.php.

Referenced by getTokenInstance(), and setTokenInstance().

◆ $token_max_lifetime_in_seconds

int ilWACSignedPath::$token_max_lifetime_in_seconds = 5
staticprotected

Definition at line 43 of file class.ilWACSignedPath.php.

Referenced by setTokenMaxLifetimeInSeconds().

◆ $type

int ilWACSignedPath::$type = PathType::FILE
protected

Definition at line 42 of file class.ilWACSignedPath.php.

Referenced by getType(), and setType().

◆ MAX_LIFETIME

const ilWACSignedPath::MAX_LIFETIME = 600

Definition at line 38 of file class.ilWACSignedPath.php.

◆ TS_SUFFIX

const ilWACSignedPath::TS_SUFFIX = 'ts'

Definition at line 36 of file class.ilWACSignedPath.php.

◆ TTL_SUFFIX

const ilWACSignedPath::TTL_SUFFIX = 'ttl'

Definition at line 37 of file class.ilWACSignedPath.php.

◆ WAC_TIMESTAMP_ID

const ilWACSignedPath::WAC_TIMESTAMP_ID = 'il_wac_ts'

Definition at line 34 of file class.ilWACSignedPath.php.

Referenced by ilWACPath\handleParameters(), and ilWACPath\setTimestamp().

◆ WAC_TOKEN_ID

const ilWACSignedPath::WAC_TOKEN_ID = 'il_wac_token'

Definition at line 33 of file class.ilWACSignedPath.php.

Referenced by ilWACPath\handleParameters(), and ilWACPath\setToken().

◆ WAC_TTL_ID

const ilWACSignedPath::WAC_TTL_ID = 'il_wac_ttl'

Definition at line 35 of file class.ilWACSignedPath.php.

Referenced by ilWACPath\handleParameters(), and ilWACPath\setTTL().


The documentation for this class was generated from the following file: