Total Complexity | 3 |
Total Lines | 51 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | class ResponseAuthenticator |
||
13 | { |
||
14 | /** |
||
15 | * @var \Psr\Http\Message\RequestInterface $request |
||
16 | * The signed request. |
||
17 | */ |
||
18 | protected $request; |
||
19 | |||
20 | /** |
||
21 | * @param \Acquia\Hmac\KeyInterface $key |
||
22 | * The key with which the request was signed. |
||
23 | */ |
||
24 | protected $key; |
||
25 | |||
26 | /** |
||
27 | * Initializes the response authenticator with a request and auth key. |
||
28 | * |
||
29 | * @param \Psr\Http\Message\RequestInterface $request |
||
30 | * The signed request. |
||
31 | * @param \Acquia\Hmac\KeyInterface $key |
||
32 | * The key with which the request was signed. |
||
33 | */ |
||
34 | 5 | public function __construct(RequestInterface $request, KeyInterface $key) |
|
38 | 5 | } |
|
39 | |||
40 | /** |
||
41 | * {@inheritDoc} |
||
42 | */ |
||
43 | 5 | public function isAuthentic(ResponseInterface $response) |
|
65 |