ILIAS  trunk Revision v11.0_alpha-1713-gd8962da2f67
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.ilCtrlToken.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
28 {
34  private string $token;
35 
41  public function __construct(string $token)
42  {
43  $this->token = $token;
44  }
45 
49  public function verifyWith(string $token): bool
50  {
51  return ($this->token === $token);
52  }
53 
57  public function getToken(): string
58  {
59  return $this->token;
60  }
61 }
verifyWith(string $token)
Class ilCtrlToken is responsible for generating and storing unique CSRF tokens.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(string $token)
ilCtrlToken Constructor