D7 API documentation
What's New
Modules
activate
canSkipMandatory
canSkipMandatoryByRights
deactivate
defer
delete
getAlgorithm
getAppSecret
getAttempts
getAvailableTypes
getByType
getByUser
getContext
getDefaultType
getDeferredParams
getHexSecret
getInitialDate
getIssuer
getLabel
getMandatoryRights
getParams
getProvisioningUri
getSecret
getSkipMandatoryDays
getSyncParameters
getType
getTypesDescription
getUserId
getUserLogin
isActivated
isAttemptsReached
isCaptchaRequired
isMandatorySkipped
isMandatoryUsing
isOtpEnabled
isOtpRequired
isOtpRequiredByMandatory
isRecoveryCodesEnabled
regenerate
save
setActive
setAppSecret
setContext
setDefaultType
setDeferredParams
setHexSecret
setIssuer
setLabel
setMandatoryRights
setMandatoryUsing
setSecret
setSkipMandatoryDays
setType
setUserInfo
setUserLogin
syncParameters
verify
verifyUser
getByType
static public static \Bitrix\Security\Mfa\Otp::getByType( string $type );
Static method returns new instance with the required OTP algorithm.
Parameters
Parameter | Description | Version |
---|---|---|
$type | OTP type (see. getAvailableTypes - \Bitrix\Security\Mfa\Otp::getAvailableTypes ). |
Exceptions
- ArgumentOutOfRangeException (
Bitrix\Main\ArgumentOutOfRangeException
)
Example
© «Bitrix24», 2001-2024
Up