Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
signingalgorithm.php
1
<?php
2
namespace
Bitrix\Main\Security\Sign
;
3
4
use
Bitrix\Main\NotImplementedException
;
5
11
abstract
class
SigningAlgorithm
12
{
21
public
function
getSignature
($value, $key)
22
{
23
throw
new
NotImplementedException
(
'Method getSignature must be overridden'
);
24
}
25
34
public
function
verify
($value, $key, $sig)
35
{
36
return
$sig === $this->
getSignature
($value, $key);
37
}
38
}
Bitrix\Main\NotImplementedException
Definition
exception.php:147
Bitrix\Main\Security\Sign\SigningAlgorithm
Definition
signingalgorithm.php:12
Bitrix\Main\Security\Sign\SigningAlgorithm\getSignature
getSignature($value, $key)
Definition
signingalgorithm.php:21
Bitrix\Main\Security\Sign\SigningAlgorithm\verify
verify($value, $key, $sig)
Definition
signingalgorithm.php:34
Bitrix\Main\Security\Sign
Definition
badsignatureexception.php:2
modules
main
lib
security
sign
signingalgorithm.php
Создано системой
1.10.0