PHP Class PhilipBrown\Signature\Guards\CheckTimestamp

Inheritance: implements PhilipBrown\Signature\Guards\Guard
Datei anzeigen Open project: philipbrown/signplz

Public Methods

Method Description
__construct ( integer $grace = 600 ) : void Create a new CheckTimestamp Guard
check ( array $auth, array $signature, string $prefix ) : boolean Check to ensure the auth parameters satisfy the rule of the guard

Method Details

__construct() public method

Create a new CheckTimestamp Guard
public __construct ( integer $grace = 600 ) : void
$grace integer
return void

check() public method

Check to ensure the auth parameters satisfy the rule of the guard
public check ( array $auth, array $signature, string $prefix ) : boolean
$auth array
$signature array
$prefix string
return boolean