mirror of
https://github.com/SociallyDev/Spaces-API.git
synced 2025-08-20 13:23:47 -07:00
spaces.php
This commit is contained in:
parent
7755490b81
commit
eefa32741e
845 changed files with 50409 additions and 0 deletions
44
aws/Aws/Signature/SignatureInterface.php
Normal file
44
aws/Aws/Signature/SignatureInterface.php
Normal file
|
@ -0,0 +1,44 @@
|
|||
<?php
|
||||
namespace Aws\Signature;
|
||||
|
||||
use Aws\Credentials\CredentialsInterface;
|
||||
use Psr\Http\Message\RequestInterface;
|
||||
|
||||
/**
|
||||
* Interface used to provide interchangeable strategies for signing requests
|
||||
* using the various AWS signature protocols.
|
||||
*/
|
||||
interface SignatureInterface
|
||||
{
|
||||
/**
|
||||
* Signs the specified request with an AWS signing protocol by using the
|
||||
* provided AWS account credentials and adding the required headers to the
|
||||
* request.
|
||||
*
|
||||
* @param RequestInterface $request Request to sign
|
||||
* @param CredentialsInterface $credentials Signing credentials
|
||||
*
|
||||
* @return RequestInterface Returns the modified request.
|
||||
*/
|
||||
public function signRequest(
|
||||
RequestInterface $request,
|
||||
CredentialsInterface $credentials
|
||||
);
|
||||
|
||||
/**
|
||||
* Create a pre-signed request.
|
||||
*
|
||||
* @param RequestInterface $request Request to sign
|
||||
* @param CredentialsInterface $credentials Credentials used to sign
|
||||
* @param int|string|\DateTime $expires The time at which the URL should
|
||||
* expire. This can be a Unix timestamp, a PHP DateTime object, or a
|
||||
* string that can be evaluated by strtotime.
|
||||
*
|
||||
* @return RequestInterface
|
||||
*/
|
||||
public function presign(
|
||||
RequestInterface $request,
|
||||
CredentialsInterface $credentials,
|
||||
$expires
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue