Facade
in package
Facade for interacting with the OTP system
Tags
Table of Contents
- __construct() : mixed
- checkHasOtpSetup() : bool
- Check if a subject has opted in to OTP usage
- checkMustUseOtp() : bool
- resetOtpSetup() : void
- validatePasscode() : bool
- Validate a user input
Methods
__construct()
public
__construct() : mixed
Return values
mixed —checkHasOtpSetup()
Check if a subject has opted in to OTP usage
public
checkHasOtpSetup(string $subject[, string $scope = 'default' ]) : bool
Usage is defined for a given scope and subject A subject may be a user or another kind of client A scope may be "login" or a specific area of the application
Parameters
- $subject : string
- $scope : string = 'default'
Return values
bool —checkMustUseOtp()
public
checkMustUseOtp(string $subject[, string $scope = 'default' ]) : bool
Parameters
- $subject : string
- $scope : string = 'default'
Return values
bool —resetOtpSetup()
public
resetOtpSetup(string $subject[, string $scope = 'default' ]) : void
Parameters
- $subject : string
- $scope : string = 'default'
Return values
void —validatePasscode()
Validate a user input
public
validatePasscode(string $passcode, string $subject[, string $scope = 'default' ][, Horde_Date|null $when = null ]) : bool
Parameters
- $passcode : string
- $subject : string
- $scope : string = 'default'
- $when : Horde_Date|null = null