Method | Description | |
---|---|---|
__construct ( QueryAuth\SignatureInterface $signature ) | Public constructor | |
getDrift ( ) : integer | Get drift | |
getSignature ( ) : Signature | Get Signature | |
isValid ( QueryAuth\Request\RequestInterface $request, QueryAuth\Credentials\CredentialsInterface $credentials ) : boolean | Is signature valid? | |
setDrift ( integer $drift ) | Set drift | |
setSignature ( QueryAuth\SignatureInterface $signature ) | Set Signature |
Method | Description | |
---|---|---|
isDriftExceeded ( array $params ) : boolean | Is $timestamp greater than or less than $drift seconds? | |
isSignaturePresent ( array $params ) | Throws exception if signature is not present in request | |
isTimestampPresent ( array $params ) | Throws exception if timestamp is not present in request |
public __construct ( QueryAuth\SignatureInterface $signature ) | ||
$signature | QueryAuth\SignatureInterface | Instance of the signature creation interface |
public getSignature ( ) : Signature | ||
return | Signature | Instance of the signature creation class |
protected isDriftExceeded ( array $params ) : boolean | ||
$params | array | Request params |
return | boolean |
protected isSignaturePresent ( array $params ) | ||
$params | array | Request params |
protected isTimestampPresent ( array $params ) | ||
$params | array | Request params |
public setSignature ( QueryAuth\SignatureInterface $signature ) | ||
$signature | QueryAuth\SignatureInterface | Instance of the signature creation class |