PHP 클래스 Trianglman\Sqrl\SqrlGenerate

저자: johnj
상속: implements Trianglman\Sqrl\SqrlGenerateInterface
파일 보기 프로젝트 열기: trianglman/sqrl 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$configuration SqrlConfiguration
$nonce
$store SqrlStore

공개 메소드들

메소드 설명
__construct ( SqrlConfiguration $config, Trianglman\Sqrl\SqrlStoreInterface $storage )
generateQry ( )
getNonce ( integer $action, string $key = '', string $previousNonce = '' ) : string Returns the generated nonce
getUrl ( )
render ( $outputFile )

보호된 메소드들

메소드 설명
generateNonce ( integer $action, string $key = '', string $previousNonce = '' ) : string Generates a random, one time use key to be used in the sqrl validation

메소드 상세

__construct() 공개 메소드

public __construct ( SqrlConfiguration $config, Trianglman\Sqrl\SqrlStoreInterface $storage )
$config SqrlConfiguration
$storage Trianglman\Sqrl\SqrlStoreInterface

generateNonce() 보호된 메소드

The implementation of this may get more complicated depending on the requirements detailed in any reference implementation. Users wanting to make this library more (or less) secure should override this function to strengthen (or weaken) the randomness of the generation.
protected generateNonce ( 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
리턴 string

generateQry() 공개 메소드

public generateQry ( )

getNonce() 공개 메소드

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
리턴 string The one time use string for the QR link

getUrl() 공개 메소드

public getUrl ( )

render() 공개 메소드

public render ( $outputFile )

프로퍼티 상세

$configuration 보호되어 있는 프로퍼티

protected SqrlConfiguration,Trianglman\Sqrl $configuration
리턴 SqrlConfiguration

$nonce 보호되어 있는 프로퍼티

protected $nonce

$store 보호되어 있는 프로퍼티

protected SqrlStore $store
리턴 SqrlStore