ILIAS
release_8 Revision v8.23
◀ ilDoc Overview
class.ilCtrlToken.php
Go to the documentation of this file.
1
<?php
2
3
declare(strict_types=1);
4
5
/* Copyright (c) 2021 Thibeau Fuhrer <thf@studer-raimann.ch> Extended GPL, see docs/LICENSE */
6
13
class
ilCtrlToken
implements
ilCtrlTokenInterface
14
{
20
private
string
$token
;
21
27
public
function
__construct
(
string
$token)
28
{
29
$this->token =
$token
;
30
}
31
35
public
function
verifyWith
(
string
$token): bool
36
{
37
return
($this->token === $token);
38
}
39
43
public
function
getToken
(): string
44
{
45
return
$this->token
;
46
}
47
}
ilCtrlToken\verifyWith
verifyWith(string $token)
Definition:
class.ilCtrlToken.php:35
ilCtrlToken\getToken
getToken()
Definition:
class.ilCtrlToken.php:43
ilCtrlToken\$token
string $token
Definition:
class.ilCtrlToken.php:20
ilCtrlToken
Class ilCtrlToken is responsible for generating and storing unique CSRF tokens.
Definition:
class.ilCtrlToken.php:13
ilCtrlTokenInterface
Interface ilCtrlTokenInterface describes an ilCtrl token.
Definition:
interface.ilCtrlTokenInterface.php:10
ilCtrlToken\__construct
__construct(string $token)
ilCtrlToken Constructor
Definition:
class.ilCtrlToken.php:27
Services
UICore
classes
Token
class.ilCtrlToken.php
Generated on Wed Sep 3 2025 22:02:46 for ILIAS by
1.8.13 (using
Doxyfile
)