Метод | Описание | |
---|---|---|
at ( integer $input ) : string | ||
getDigest ( ) : string | ||
getDigits ( ) : integer | ||
getIssuer ( ) : string | ||
getLabel ( ) : string | ||
getParameter ( string $parameter ) : null | mixed | ||
getParameters ( ) : array | ||
getProvisioningUri ( ) : string | ||
getQrCodeUri ( string $uri = 'https://chart.googleapis.com/chart?chs=200x200&chld=M|0&cht=qr&chl={PROVISIONING_URI}', string $placeholder = '{PROVISIONING_URI}' ) : string | ||
getSecret ( ) : string | ||
hasParameter ( string $parameter ) : boolean | ||
isIssuerIncludedAsParameter ( ) : boolean | ||
setIssuer ( string $issuer ) | ||
setIssuerIncludedAsParameter ( boolean $issuer_included_as_parameter ) | ||
setParameter ( string $parameter, mixed $value ) | ||
verify ( string $otp, integer | null $input = null, integer | null $window = null ) : boolean | Verify that the OTP is valid with the specified input. |
public getProvisioningUri ( ) : string | ||
Результат | string | Get the provisioning URI |
public getQrCodeUri ( string $uri = 'https://chart.googleapis.com/chart?chs=200x200&chld=M|0&cht=qr&chl={PROVISIONING_URI}', string $placeholder = '{PROVISIONING_URI}' ) : string | ||
$uri | string | The Uri of the QRCode generator with all parameters. By default the Googgle Chart API is used. This Uri MUST contain a placeholder that will be replaced by the method. |
$placeholder | string | The placeholder to be replaced in the QR Code generator URI. Default value is {PROVISIONING_URI}. |
Результат | string | Get the provisioning URI |
public hasParameter ( string $parameter ) : boolean | ||
$parameter | string | |
Результат | boolean |
public isIssuerIncludedAsParameter ( ) : boolean | ||
Результат | boolean | If true, the issuer will be added as a parameter in the provisioning URI |
public setIssuerIncludedAsParameter ( boolean $issuer_included_as_parameter ) | ||
$issuer_included_as_parameter | boolean |
public setParameter ( string $parameter, mixed $value ) | ||
$parameter | string | |
$value | mixed |