PHP Class OTPHP\Factory

Datei anzeigen Open project: spomky-labs/otphp Class Usage Examples

Public Methods

Method Description
loadFromProvisioningUri ( string $uri ) : TOTP | HOTP

Private Methods

Method Description
checkData ( array &$data )
createOTP ( array $parsed_url ) : OTPHP\HOTPInterface | OTPHP\TOTPInterface
getLabel ( string $data ) : string
populateOTP ( otphp\OTPInterface &$otp, array $data )
populateParameters ( otphp\OTPInterface &$otp, array $data )

Method Details

loadFromProvisioningUri() public static method

public static loadFromProvisioningUri ( string $uri ) : TOTP | HOTP
$uri string
return TOTP | HOTP