Documentation

OtpAlgorithm

OtpAlgorithm abstract base class for all algorithms for implementing multi-factor authentication.

Method Description Available from version
generateOTP Main method that generates OTP for specified counter.
generateUri Generates URL for connected mobile application according to KeyUriFormat.
getAppScheme Returns algorithm scheme. 14.5.6
getDescription Returns algorithm description. 14.5.6
getDigest Returns hashing algorithm when generating OTP code.
getDigits Returns numerals (password length).
getSecret Returns generated secret.
getSyncParameters Returns synchronised user parameters.
getType Returns type of OTP algorithm.
isTwoCodeRequired Non-static method that defines, if two codes are required for initializing the algorithm or only one code is sufficient.
setSecret Set a new secret.
verify Confirms inputted data.


© «Bitrix24», 2001-2024
Up