Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
Класс TotpAlgorithm
+ Граф наследования:TotpAlgorithm:

Открытые члены

 __construct (array $initParams=[])
 
 verify ($input, $params=null, $time=null)
 
 generateUri ($label, array $opts=[])
 
 timecode ($timestamp)
 
 setInterval ($interval)
 
 setWindow ($window)
 
 getSyncParameters ($inputA, $inputB)
 
- Открытые члены унаследованные от OtpAlgorithm
 verify ($input, $params=null)
 
 isTwoCodeRequired ()
 
 setSecret ($secret)
 
 getSecret ()
 
 generateOTP ($counter)
 
 getDigest ()
 
 getDigits ()
 
 getType ()
 
 getAppScheme ()
 

Открытые атрибуты

const SYNC_WINDOW = 180
 

Защищенные члены

 getInterval ()
 
- Защищенные члены унаследованные от OtpAlgorithm
 isStringsEqual ($expected, $actual)
 

Защищенные данные

 $interval = 30
 
int $startTimestamp = 0
 
 $window = 2
 
 $requireTwoCode = false
 
- Защищенные данные унаследованные от OtpAlgorithm
 $digest = 'sha1'
 
 $digits = 6
 
 $secret = null
 
 $appScheme = 'otpauth'
 
 $requireTwoCode = true
 

Статические защищенные данные

static $type = 'totp'
 
- Статические защищенные данные унаследованные от OtpAlgorithm
static $type = 'undefined'
 

Дополнительные унаследованные члены

- Защищенные статические члены унаследованные от OtpAlgorithm
static toByte ($value)
 

Подробное описание

См. определение в файле totpalgorithm.php строка 12

Конструктор(ы)

◆ __construct()

__construct ( array $initParams = [])

См. определение в файле totpalgorithm.php строка 22

Методы

◆ generateUri()

generateUri ( $label,
array $opts = [] )

@inheritDoc

Переопределяет метод предка OtpAlgorithm.

См. определение в файле totpalgorithm.php строка 117

◆ getInterval()

getInterval ( )
protected

Return used interval in counter generation

Возвращает
int

См. определение в файле totpalgorithm.php строка 151

◆ getSyncParameters()

getSyncParameters ( $inputA,
$inputB )

@inheritDoc

Переопределяет метод предка OtpAlgorithm.

См. определение в файле totpalgorithm.php строка 169

◆ setInterval()

setInterval ( $interval)
Аргументы
int$interval
Возвращает
$this

См. определение в файле totpalgorithm.php строка 140

◆ setWindow()

setWindow ( $window)
Аргументы
int$window
Возвращает
$this

См. определение в файле totpalgorithm.php строка 160

◆ timecode()

timecode ( $timestamp)

Make OTP counter from provided timestamp

Аргументы
int$timestampTimestamp.
Возвращает
int

См. определение в файле totpalgorithm.php строка 129

◆ verify()

verify ( $input,
$params = null,
$time = null )

@inheritDoc

См. определение в файле totpalgorithm.php строка 39

Данные класса

◆ $interval

$interval = 30
protected

См. определение в файле totpalgorithm.php строка 16

◆ $requireTwoCode

$requireTwoCode = false
protected

См. определение в файле totpalgorithm.php строка 20

◆ $startTimestamp

int $startTimestamp = 0
protected

См. определение в файле totpalgorithm.php строка 17

◆ $type

$type = 'totp'
staticprotected

См. определение в файле totpalgorithm.php строка 15

◆ $window

$window = 2
protected

См. определение в файле totpalgorithm.php строка 19

◆ SYNC_WINDOW

const SYNC_WINDOW = 180

См. определение в файле totpalgorithm.php строка 14