ILIAS  trunk Revision v11.0_alpha-1811-gd2d5443e411
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilCmiXapiAuthToken Class Reference
+ Collaboration diagram for ilCmiXapiAuthToken:

Public Member Functions

 __construct ()
 
 getRefId ()
 
 setRefId (int $ref_id)
 
 getObjId ()
 
 setObjId (int $obj_id)
 
 getUsrId ()
 
 setUsrId (int $usr_id)
 
 getToken ()
 
 setToken (string $token)
 
 getValidUntil ()
 
 setValidUntil (string $valid_until)
 
 getLrsTypeId ()
 
 setLrsTypeId (int $lrs_type_id)
 
 getCmi5Session ()
 
 setCmi5Session (string $cmi5_session)
 
 getCmi5SessionData ()
 
 setCmi5SessionData (string $cmi5_session_data)
 
 getReturnedForCmi5Session ()
 
 setReturnedForCmi5Session (string $returned_for_cmi5_session)
 
 update ()
 
 delete ()
 

Static Public Member Functions

static insertToken ($usrId, $refId, $objId, $lrsTypeId, $a_token, $a_time)
 
static deleteTokenByObjIdAndUsrId (int $objId, int $usrId)
 
static deleteTokenByObjIdAndRefIdAndUsrId (int $objId, int $refId, int $usrId)
 
static deleteExpiredTokens ()
 
static selectCurrentTimestamp ()
 
static createToken ()
 
static fillToken (int $usrId, int $refId, int $objId, int $lrsTypeId=0)
 
static getInstanceByToken (string $token)
 
static getInstanceByObjIdAndUsrId (int $objId, int $usrId, bool $checkValid=true)
 
static getInstanceByObjIdAndRefIdAndUsrId (int $objId, int $refId, int $usrId, bool $checkValid=true)
 
static getCmi5SessionByUsrIdAndObjIdAndRefId (int $usrId, int $objId, ?int $refId=null)
 
static getWacSalt ()
 

Data Fields

const DB_TABLE_NAME = 'cmix_token'
 
const OPENSSL_ENCRYPTION_METHOD = 'aes128'
 
const OPENSSL_IV = '1234567890123456'
 

Protected Attributes

int $ref_id
 
int $obj_id
 
int $usr_id
 
string $token
 
string $valid_until
 
int $lrs_type_id
 
string $cmi5_session = null
 
string $cmi5_session_data
 
string $returned_for_cmi5_session = null
 
ilDBInterface $db
 

Detailed Description

Definition at line 30 of file class.ilCmiXapiAuthToken.php.

Constructor & Destructor Documentation

◆ __construct()

ilCmiXapiAuthToken::__construct ( )

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

References $DIC.

59  {
60  global $DIC;
61  $this->db = $DIC->database();
62  }
global $DIC
Definition: shib_login.php:22

Member Function Documentation

◆ createToken()

static ilCmiXapiAuthToken::createToken ( )
static

Definition at line 249 of file class.ilCmiXapiAuthToken.php.

249  : string
250  {
251  return (new \Ramsey\Uuid\UuidFactory())->uuid4()->toString();
252  }

◆ delete()

ilCmiXapiAuthToken::delete ( )

Definition at line 217 of file class.ilCmiXapiAuthToken.php.

References $DIC, getObjId(), getRefId(), and getUsrId().

217  : void
218  {
219  global $DIC; /* @var \ILIAS\DI\Container $DIC */
220 
221  $query = "
222  DELETE FROM " . self::DB_TABLE_NAME . "
223  WHERE obj_id = %s AND ref_id = %s AND usr_id = %s
224  ";
225 
226  $DIC->database()->manipulateF($query, array('integer', 'integer', 'integer'), array($this->getObjId(), $this->getRefId(), $this->getUsrId()));
227  }
global $DIC
Definition: shib_login.php:22
+ Here is the call graph for this function:

◆ deleteExpiredTokens()

static ilCmiXapiAuthToken::deleteExpiredTokens ( )
static

Definition at line 229 of file class.ilCmiXapiAuthToken.php.

References $DIC.

229  : void
230  {
231  global $DIC; /* @var \ILIAS\DI\Container $DIC */
232 
233  $query = "DELETE FROM " . self::DB_TABLE_NAME . " WHERE valid_until < CURRENT_TIMESTAMP";
234  $DIC->database()->manipulate($query);
235  }
global $DIC
Definition: shib_login.php:22

◆ deleteTokenByObjIdAndRefIdAndUsrId()

static ilCmiXapiAuthToken::deleteTokenByObjIdAndRefIdAndUsrId ( int  $objId,
int  $refId,
int  $usrId 
)
static

Definition at line 205 of file class.ilCmiXapiAuthToken.php.

References $DIC.

205  : void
206  {
207  global $DIC; /* @var \ILIAS\DI\Container $DIC */
208 
209  $query = "
210  DELETE FROM " . self::DB_TABLE_NAME . "
211  WHERE obj_id = %s AND ref_id = %s AND usr_id = %s
212  ";
213 
214  $DIC->database()->manipulateF($query, array('integer', 'integer', 'integer'), array($objId, $refId, $usrId));
215  }
$objId
Definition: xapitoken.php:57
$refId
Definition: xapitoken.php:58
global $DIC
Definition: shib_login.php:22

◆ deleteTokenByObjIdAndUsrId()

static ilCmiXapiAuthToken::deleteTokenByObjIdAndUsrId ( int  $objId,
int  $usrId 
)
static

Definition at line 193 of file class.ilCmiXapiAuthToken.php.

References $DIC.

193  : void
194  {
195  global $DIC; /* @var \ILIAS\DI\Container $DIC */
196 
197  $query = "
198  DELETE FROM " . self::DB_TABLE_NAME . "
199  WHERE obj_id = %s AND usr_id = %s
200  ";
201 
202  $DIC->database()->manipulateF($query, array('integer', 'integer'), array($objId, $usrId));
203  }
$objId
Definition: xapitoken.php:57
global $DIC
Definition: shib_login.php:22

◆ fillToken()

static ilCmiXapiAuthToken::fillToken ( int  $usrId,
int  $refId,
int  $objId,
int  $lrsTypeId = 0 
)
static

Definition at line 254 of file class.ilCmiXapiAuthToken.php.

References Vendor\Package\$e, $token, IL_CAL_DATETIME, and IL_CAL_UNIX.

Referenced by ilLTIConsumerContentGUI\getLaunchParameters(), ilLTIConsumerContentGUI\getStartButtonTxt11(), ilLTIConsumerContentGUI\getStartButtonTxt13(), and ilCmiXapiLaunchGUI\getValidToken().

254  : string
255  {
256  //$seconds = $this->getTimeToDelete();
257  $seconds = 86400; // TODO: invalidation interval
258 
259  $nowTimeDT = self::selectCurrentTimestamp();
260 
261  $nowTime = new ilDateTime($nowTimeDT, IL_CAL_DATETIME);
262 
263  $nowTimeTS = $nowTime->get(IL_CAL_UNIX);
264  $newTimeTS = $nowTimeTS + $seconds;
265 
266  $newTime = new ilDateTime($newTimeTS, IL_CAL_UNIX);
267 
268  //self::deleteTokenByObjIdAndUsrId($object->getId(), $usrId);
269 
270  try {
271  $tokenObject = self::getInstanceByObjIdAndRefIdAndUsrId($objId, $refId, $usrId, false);
272  $tokenObject->setValidUntil($newTime->get(IL_CAL_DATETIME));
273  $tokenObject->update();
274 
275  $token = $tokenObject->getToken();
276  } catch (ilCmiXapiException $e) {
277  $token = self::createToken();
278  self::insertToken($usrId, $refId, $objId, $lrsTypeId, $token, $newTime->get(IL_CAL_DATETIME));
279  }
280 
281  // TODO: move to cronjob ;-)
282  // TODO: check cmi5 sessions of token and if not terminated -> abandoned statement
283  self::deleteExpiredTokens();
284 
285  return $token;
286  }
const IL_CAL_DATETIME
$objId
Definition: xapitoken.php:57
$refId
Definition: xapitoken.php:58
const IL_CAL_UNIX
+ Here is the caller graph for this function:

◆ getCmi5Session()

ilCmiXapiAuthToken::getCmi5Session ( )

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

References $cmi5_session.

Referenced by update().

124  : ?string
125  {
126  return $this->cmi5_session;
127  }
+ Here is the caller graph for this function:

◆ getCmi5SessionByUsrIdAndObjIdAndRefId()

static ilCmiXapiAuthToken::getCmi5SessionByUsrIdAndObjIdAndRefId ( int  $usrId,
int  $objId,
?int  $refId = null 
)
static
Exceptions
ilCmiXapiException

Definition at line 393 of file class.ilCmiXapiAuthToken.php.

References $DIC, and $refId.

Referenced by ilObjCmiXapi\getSessionId().

393  : string
394  {
395  global $DIC;
396 
397  if (empty($refId)) {
398  $query = "SELECT cmi5_session FROM " . self::DB_TABLE_NAME . " WHERE usr_id = %s AND obj_id = %s";
399  $result = $DIC->database()->queryF($query, array('integer', 'integer'), array($usrId, $objId));
400  } else {
401  $query = "SELECT cmi5_session FROM " . self::DB_TABLE_NAME . " WHERE usr_id = %s AND obj_id = %s AND ref_id = %s";
402  $result = $DIC->database()->queryF($query, array('integer', 'integer', 'integer'), array($usrId, $objId, $refId));
403  }
404 
405  $row = $DIC->database()->fetchAssoc($result);
406 
407  if ($row && $row['cmi5_session'] != '') {
408  return $row['cmi5_session'];
409  }
410  throw new ilCmiXapiException('no valid cmi5_session found for: ' . $objId . '/' . $usrId);
411  }
$objId
Definition: xapitoken.php:57
$refId
Definition: xapitoken.php:58
global $DIC
Definition: shib_login.php:22
+ Here is the caller graph for this function:

◆ getCmi5SessionData()

ilCmiXapiAuthToken::getCmi5SessionData ( )

Definition at line 134 of file class.ilCmiXapiAuthToken.php.

References $cmi5_session_data.

Referenced by update().

134  : string
135  {
137  }
+ Here is the caller graph for this function:

◆ getInstanceByObjIdAndRefIdAndUsrId()

static ilCmiXapiAuthToken::getInstanceByObjIdAndRefIdAndUsrId ( int  $objId,
int  $refId,
int  $usrId,
bool  $checkValid = true 
)
static
Exceptions
ilCmiXapiException

Definition at line 358 of file class.ilCmiXapiAuthToken.php.

References $DIC.

359  {
360  global $DIC; /* @var \ILIAS\DI\Container $DIC */
361 
362  $query = "SELECT * FROM " . self::DB_TABLE_NAME . " WHERE obj_id = %s AND ref_id = %s AND usr_id = %s";
363 
364  if ($checkValid) {
365  $query .= " AND valid_until > CURRENT_TIMESTAMP";
366  }
367 
368  $result = $DIC->database()->queryF($query, array('integer', 'integer', 'integer'), array($objId, $refId, $usrId));
369 
370  $row = $DIC->database()->fetchAssoc($result);
371 
372  if ($row) {
373  $tokenObject = new self();
374  $tokenObject->setToken($row['token']);
375  $tokenObject->setValidUntil($row['valid_until']);
376  $tokenObject->setUsrId((int) $row['usr_id']);
377  $tokenObject->setObjId((int) $row['obj_id']);
378  $tokenObject->setRefId((int) $row['ref_id']);
379  $tokenObject->setLrsTypeId((int) $row['lrs_type_id']);
380  $tokenObject->setCmi5Session($row['cmi5_session']);
381  $tokenObject->setReturnedForCmi5Session($row['returned_for_cmi5_session']);
382  $tokenObject->setCmi5SessionData((string) $row['cmi5_session_data']);
383 
384  return $tokenObject;
385  }
386 
387  throw new ilCmiXapiException('no valid token found for: ' . $objId . '/' . $usrId);
388  }
$objId
Definition: xapitoken.php:57
$refId
Definition: xapitoken.php:58
global $DIC
Definition: shib_login.php:22

◆ getInstanceByObjIdAndUsrId()

static ilCmiXapiAuthToken::getInstanceByObjIdAndUsrId ( int  $objId,
int  $usrId,
bool  $checkValid = true 
)
static
Exceptions
ilCmiXapiException

Definition at line 323 of file class.ilCmiXapiAuthToken.php.

References $DIC.

324  {
325  global $DIC; /* @var \ILIAS\DI\Container $DIC */
326 
327  $query = "SELECT * FROM " . self::DB_TABLE_NAME . " WHERE obj_id = %s AND usr_id = %s";
328 
329  if ($checkValid) {
330  $query .= " AND valid_until > CURRENT_TIMESTAMP";
331  }
332 
333  $result = $DIC->database()->queryF($query, array('integer', 'integer'), array($objId, $usrId));
334 
335  $row = $DIC->database()->fetchAssoc($result);
336 
337  if ($row) {
338  $tokenObject = new self();
339  $tokenObject->setToken($row['token']);
340  $tokenObject->setValidUntil($row['valid_until']);
341  $tokenObject->setUsrId($row['usr_id']);
342  $tokenObject->setObjId($row['obj_id']);
343  $tokenObject->setRefId($row['ref_id']);
344  $tokenObject->setLrsTypeId($row['lrs_type_id']);
345  $tokenObject->setCmi5Session($row['cmi5_session']);
346  $tokenObject->setReturnedForCmi5Session($row['returned_for_cmi5_session']);
347  $tokenObject->setCmi5SessionData($row['cmi5_session_data']);
348 
349  return $tokenObject;
350  }
351 
352  throw new ilCmiXapiException('no valid token found for: ' . $objId . '/' . $usrId);
353  }
$objId
Definition: xapitoken.php:57
global $DIC
Definition: shib_login.php:22

◆ getInstanceByToken()

static ilCmiXapiAuthToken::getInstanceByToken ( string  $token)
static
Exceptions
ilCmiXapiException

Definition at line 291 of file class.ilCmiXapiAuthToken.php.

References $DIC, and $res.

Referenced by ilCmiXapiLaunchGUI\CMI5preLaunch(), XapiProxy\XapiProxyRequest\handleGetStatementsRequest(), ilLTIConsumerResultService\handleRequest(), and XapiProxy\XapiProxyPolyFill\initLrs().

292  {
293  global $DIC; /* @var \ILIAS\DI\Container $DIC */
294 
295  $query = "
296  SELECT * FROM " . self::DB_TABLE_NAME . "
297  WHERE token = %s AND valid_until > CURRENT_TIMESTAMP
298  ";
299 
300  $res = $DIC->database()->queryF($query, array('text'), array($token));
301 
302  while ($row = $DIC->database()->fetchAssoc($res)) {
303  $tokenObject = new self();
304  $tokenObject->setToken($token);
305  $tokenObject->setValidUntil((string) $row['valid_until']);
306  $tokenObject->setUsrId((int) $row['usr_id']);
307  $tokenObject->setObjId((int) $row['obj_id']);
308  $tokenObject->setRefId((int) $row['ref_id']);
309  $tokenObject->setLrsTypeId((int) $row['lrs_type_id']);
310  $tokenObject->setCmi5Session((string) $row['cmi5_session']);
311  $tokenObject->setReturnedForCmi5Session((string) $row['returned_for_cmi5_session']);
312  $tokenObject->setCmi5SessionData((string) $row['cmi5_session_data']);
313 
314  return $tokenObject;
315  }
316 
317  throw new ilCmiXapiException('no valid token found for: ' . $token);
318  }
$res
Definition: ltiservices.php:66
global $DIC
Definition: shib_login.php:22
+ Here is the caller graph for this function:

◆ getLrsTypeId()

ilCmiXapiAuthToken::getLrsTypeId ( )

Definition at line 114 of file class.ilCmiXapiAuthToken.php.

References $lrs_type_id.

Referenced by update().

114  : int
115  {
116  return $this->lrs_type_id;
117  }
+ Here is the caller graph for this function:

◆ getObjId()

ilCmiXapiAuthToken::getObjId ( )

Definition at line 74 of file class.ilCmiXapiAuthToken.php.

References $obj_id.

Referenced by delete(), ilCmiXapiUser\getCMI5RegistrationFromAuthToken(), and update().

74  : int
75  {
76  return $this->obj_id;
77  }
+ Here is the caller graph for this function:

◆ getRefId()

ilCmiXapiAuthToken::getRefId ( )

Definition at line 64 of file class.ilCmiXapiAuthToken.php.

References $ref_id.

Referenced by delete(), ilCmiXapiUser\getRegistrationFromAuthToken(), and update().

64  : int
65  {
66  return $this->ref_id;
67  }
+ Here is the caller graph for this function:

◆ getReturnedForCmi5Session()

ilCmiXapiAuthToken::getReturnedForCmi5Session ( )

Definition at line 144 of file class.ilCmiXapiAuthToken.php.

References $returned_for_cmi5_session.

Referenced by update().

144  : ?string
145  {
147  }
+ Here is the caller graph for this function:

◆ getToken()

ilCmiXapiAuthToken::getToken ( )

Definition at line 94 of file class.ilCmiXapiAuthToken.php.

References $token.

Referenced by update().

94  : string
95  {
96  return $this->token;
97  }
+ Here is the caller graph for this function:

◆ getUsrId()

ilCmiXapiAuthToken::getUsrId ( )

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

References $usr_id.

Referenced by delete(), ilCmiXapiUser\getCMI5RegistrationFromAuthToken(), ilCmiXapiUser\getRegistrationFromAuthToken(), and update().

84  : int
85  {
86  return $this->usr_id;
87  }
+ Here is the caller graph for this function:

◆ getValidUntil()

ilCmiXapiAuthToken::getValidUntil ( )

Definition at line 104 of file class.ilCmiXapiAuthToken.php.

References $valid_until.

Referenced by update().

104  : string
105  {
106  return $this->valid_until;
107  }
+ Here is the caller graph for this function:

◆ getWacSalt()

static ilCmiXapiAuthToken::getWacSalt ( )
static
Exceptions
ilCmiXapiException

Definition at line 416 of file class.ilCmiXapiAuthToken.php.

Referenced by ilCmiXapiLaunchGUI\buildAuthTokenFetchParam().

416  : string
417  {
418  include 'data/wacsalt.php';
419 
420  if (isset($salt)) {
421  return $salt;
422  }
423 
424  throw new ilCmiXapiException('no salt for encryption provided');
425  }
+ Here is the caller graph for this function:

◆ insertToken()

static ilCmiXapiAuthToken::insertToken (   $usrId,
  $refId,
  $objId,
  $lrsTypeId,
  $a_token,
  $a_time 
)
static

Definition at line 174 of file class.ilCmiXapiAuthToken.php.

References $DIC, $objId, and $refId.

174  : void
175  {
176  global $DIC; /* @var \ILIAS\DI\Container $DIC */
177 
178  $DIC->database()->insert(
179  self::DB_TABLE_NAME,
180  array(
181  'token' => array('text', $a_token),
182  'valid_until' => array('timestamp', $a_time),
183  'ref_id' => array('integer', $refId),
184  'obj_id' => array('integer', $objId),
185  'usr_id' => array('integer', $usrId),
186  'lrs_type_id' => array('integer', $lrsTypeId)
187  )
188  );
189  // 'cmi5_session' defaults always to '' by inserting
190  // 'returned_for_cmi5_session' defaults always to '' by inserting
191  }
$objId
Definition: xapitoken.php:57
$refId
Definition: xapitoken.php:58
global $DIC
Definition: shib_login.php:22

◆ selectCurrentTimestamp()

static ilCmiXapiAuthToken::selectCurrentTimestamp ( )
static

Definition at line 238 of file class.ilCmiXapiAuthToken.php.

References $DIC.

Referenced by ilCmiXapiResult\insert(), and ilCmiXapiResult\update().

238  : string
239  {
240  global $DIC; /* @var \ILIAS\DI\Container $DIC */
241 
242  $query = "SELECT CURRENT_TIMESTAMP";
243  $result = $DIC->database()->query($query);
244  $row = $DIC->database()->fetchAssoc($result);
245 
246  return (string) $row['CURRENT_TIMESTAMP'];
247  }
global $DIC
Definition: shib_login.php:22
+ Here is the caller graph for this function:

◆ setCmi5Session()

ilCmiXapiAuthToken::setCmi5Session ( string  $cmi5_session)

Definition at line 129 of file class.ilCmiXapiAuthToken.php.

References $cmi5_session.

129  : void
130  {
131  $this->cmi5_session = $cmi5_session;
132  }

◆ setCmi5SessionData()

ilCmiXapiAuthToken::setCmi5SessionData ( string  $cmi5_session_data)

Definition at line 139 of file class.ilCmiXapiAuthToken.php.

References $cmi5_session_data.

139  : void
140  {
141  $this->cmi5_session_data = $cmi5_session_data;
142  }

◆ setLrsTypeId()

ilCmiXapiAuthToken::setLrsTypeId ( int  $lrs_type_id)

Definition at line 119 of file class.ilCmiXapiAuthToken.php.

References $lrs_type_id.

119  : void
120  {
121  $this->lrs_type_id = $lrs_type_id;
122  }

◆ setObjId()

ilCmiXapiAuthToken::setObjId ( int  $obj_id)

Definition at line 79 of file class.ilCmiXapiAuthToken.php.

References $obj_id.

79  : void
80  {
81  $this->obj_id = $obj_id;
82  }

◆ setRefId()

ilCmiXapiAuthToken::setRefId ( int  $ref_id)

Definition at line 69 of file class.ilCmiXapiAuthToken.php.

References $ref_id.

69  : void
70  {
71  $this->ref_id = $ref_id;
72  }

◆ setReturnedForCmi5Session()

ilCmiXapiAuthToken::setReturnedForCmi5Session ( string  $returned_for_cmi5_session)

Definition at line 149 of file class.ilCmiXapiAuthToken.php.

References $returned_for_cmi5_session.

149  : void
150  {
151  $this->returned_for_cmi5_session = $returned_for_cmi5_session;
152  }

◆ setToken()

ilCmiXapiAuthToken::setToken ( string  $token)

Definition at line 99 of file class.ilCmiXapiAuthToken.php.

References $token.

99  : void
100  {
101  $this->token = $token;
102  }

◆ setUsrId()

ilCmiXapiAuthToken::setUsrId ( int  $usr_id)

Definition at line 89 of file class.ilCmiXapiAuthToken.php.

References $usr_id.

89  : void
90  {
91  $this->usr_id = $usr_id;
92  }

◆ setValidUntil()

ilCmiXapiAuthToken::setValidUntil ( string  $valid_until)

Definition at line 109 of file class.ilCmiXapiAuthToken.php.

References $valid_until.

109  : void
110  {
111  $this->valid_until = $valid_until;
112  }

◆ update()

ilCmiXapiAuthToken::update ( )

Definition at line 154 of file class.ilCmiXapiAuthToken.php.

References getCmi5Session(), getCmi5SessionData(), getLrsTypeId(), getObjId(), getRefId(), getReturnedForCmi5Session(), getToken(), getUsrId(), and getValidUntil().

154  : void
155  {
156  $this->db->update(
157  self::DB_TABLE_NAME,
158  [
159  'valid_until' => array('timestamp', $this->getValidUntil()),
160  'ref_id' => array('integer', $this->getRefId()),
161  'obj_id' => array('integer', $this->getObjId()),
162  'usr_id' => array('integer', $this->getUsrId()),
163  'lrs_type_id' => array('integer', $this->getLrsTypeId()),
164  'cmi5_session' => array('text', $this->getCmi5Session()),
165  'returned_for_cmi5_session' => array('text', $this->getReturnedForCmi5Session()),
166  'cmi5_session_data' => array('clob', $this->getCmi5SessionData())
167  ],
168  [
169  'token' => array('text', $this->getToken()),
170  ]
171  );
172  }
+ Here is the call graph for this function:

Field Documentation

◆ $cmi5_session

string ilCmiXapiAuthToken::$cmi5_session = null
protected

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

Referenced by getCmi5Session(), and setCmi5Session().

◆ $cmi5_session_data

string ilCmiXapiAuthToken::$cmi5_session_data
protected

Definition at line 52 of file class.ilCmiXapiAuthToken.php.

Referenced by getCmi5SessionData(), and setCmi5SessionData().

◆ $db

ilDBInterface ilCmiXapiAuthToken::$db
protected

Definition at line 56 of file class.ilCmiXapiAuthToken.php.

◆ $lrs_type_id

int ilCmiXapiAuthToken::$lrs_type_id
protected

Definition at line 48 of file class.ilCmiXapiAuthToken.php.

Referenced by getLrsTypeId(), and setLrsTypeId().

◆ $obj_id

int ilCmiXapiAuthToken::$obj_id
protected

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

Referenced by getObjId(), and setObjId().

◆ $ref_id

int ilCmiXapiAuthToken::$ref_id
protected

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

Referenced by getRefId(), and setRefId().

◆ $returned_for_cmi5_session

string ilCmiXapiAuthToken::$returned_for_cmi5_session = null
protected

◆ $token

string ilCmiXapiAuthToken::$token
protected

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

Referenced by fillToken(), getToken(), and setToken().

◆ $usr_id

int ilCmiXapiAuthToken::$usr_id
protected

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

Referenced by getUsrId(), and setUsrId().

◆ $valid_until

string ilCmiXapiAuthToken::$valid_until
protected

Definition at line 46 of file class.ilCmiXapiAuthToken.php.

Referenced by getValidUntil(), and setValidUntil().

◆ DB_TABLE_NAME

const ilCmiXapiAuthToken::DB_TABLE_NAME = 'cmix_token'

Definition at line 32 of file class.ilCmiXapiAuthToken.php.

◆ OPENSSL_ENCRYPTION_METHOD

const ilCmiXapiAuthToken::OPENSSL_ENCRYPTION_METHOD = 'aes128'

◆ OPENSSL_IV

const ilCmiXapiAuthToken::OPENSSL_IV = '1234567890123456'

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