| 1 |
<?php |
| 2 |
|
| 3 |
namespace Dudlewebs\WPMCS\s3\Aws\Token; |
| 4 |
|
| 5 |
use Dudlewebs\WPMCS\s3\Psr\Http\Message\RequestInterface; |
| 6 |
/** |
| 7 |
* Interface used to provide interchangeable strategies for adding authorization |
| 8 |
* to requests using the various AWS signature protocols. |
| 9 |
*/ |
| 10 |
interface TokenAuthorization |
| 11 |
{ |
| 12 |
/** |
| 13 |
* Adds the specified token to a request by adding the required headers. |
| 14 |
* |
| 15 |
* @param RequestInterface $request Request to sign |
| 16 |
* @param TokenInterface $token Token |
| 17 |
* |
| 18 |
* @return RequestInterface Returns the modified request. |
| 19 |
*/ |
| 20 |
public function authorizeRequest(RequestInterface $request, TokenInterface $token); |
| 21 |
} |
| 22 |
|