PHP Interface Trianglman\Sqrl\SqrlGenerateInterface

Author: johnj
Show file Open project: trianglman/sqrl

Public Methods

Method Description
generateQry ( ) : string Generates the qry parameter to send in server responses
getNonce ( integer $action, string $key = '', string $previousNonce = '' ) : string Returns the generated nonce
getUrl ( ) : string Gets the validation URL including the nonce
render ( string $outputFile ) : void Generates the QR code image

Method Details

generateQry() public method

Generates the qry parameter to send in server responses
public generateQry ( ) : string
return string

getNonce() public method

Returns the generated nonce
public getNonce ( integer $action, string $key = '', string $previousNonce = '' ) : string
$action integer [Optional] The type of action this nonce is being generated for
$key string [Optional] The public key associated with the nonce
$previousNonce string [Optional] The previous nonce in the transaction that should be associated to this nonce
return string The one time use string for the QR link

getUrl() public method

Gets the validation URL including the nonce
public getUrl ( ) : string
return string

render() public method

Generates the QR code image
public render ( string $outputFile ) : void
$outputFile string
return void