ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilCtrlToken.php
Go to the documentation of this file.
1<?php
2
19declare(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}
Class ilCtrlToken is responsible for generating and storing unique CSRF tokens.
__construct(string $token)
ilCtrlToken Constructor
getToken()
@inheritDoc
verifyWith(string $token)
@inheritDoc
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...