1 | <?php namespace nyx\auth\id\protocols\oauth1\signers; |
||
21 | class HmacSha1 extends oauth1\Signer |
||
22 | { |
||
23 | /** |
||
24 | * {@inheritDoc} |
||
25 | */ |
||
26 | public function getSignatureMethod() : string |
||
30 | |||
31 | /** |
||
32 | * {@inheritDoc} |
||
33 | */ |
||
34 | public function sign(Request $request, array $params, auth\id\credentials\Client $client, auth\interfaces\Credentials $token = null) : string |
||
38 | |||
39 | /** |
||
40 | * Hashes a string with the signature's key. |
||
41 | * |
||
42 | * @param string $string |
||
43 | * @return string |
||
44 | */ |
||
45 | protected function hash(string $string, string $key) : string |
||
49 | } |
||
50 |