A class for implementing a Signature Method See section 9 ("Signing Requests") in the spec

 Methods

Build up the signature NOTE: The output of this function MUST NOT be urlencoded.

build_signature(\Moneybird\Lib\OAuthRequest $request, \Moneybird\Lib\OAuthConsumer $consumer, \Moneybird\Lib\OAuthToken $token) : string

the encoding is handled in OAuthRequest when the final request is serialized

Parameters

Returns

string

Verifies that a given signature is correct

check_signature(\Moneybird\Lib\OAuthRequest $request, \Moneybird\Lib\OAuthConsumer $consumer, \Moneybird\Lib\OAuthToken $token, string $signature) : bool

Parameters

$signature

string

Returns

bool

Needs to return the name of the Signature Method (ie HMAC-SHA1)

get_name() : string

Returns

string