Class S3SignatureV4
- Aws\Signature\SignatureV4 implements Aws\Signature\SignatureInterface uses Aws\Signature\SignatureTrait
-
Aws\Signature\S3SignatureV4 uses Aws\Signature\SignatureTrait
- Namespace: Aws\Signature
- Located at Signature/S3SignatureV4.php
Amazon S3 signature version 4 support.
Methods Summary
-
signRequest ( Psr\Http\Message\RequestInterface $request, Aws\Credentials\CredentialsInterface $credentials, $signingService = null )
Signs the specified request with an AWS signing protocol by using the provided AWS account credentials and adding the required headers to the request.
-
presign ( Psr\Http\Message\RequestInterface $request, Aws\Credentials\CredentialsInterface $credentials, int|string|\DateTimeInterface $expires, array $options = [] )
Always add a x-amz-content-sha-256 for data integrity.
Methods inherited from Aws\Signature\SignatureV4
Methods Details
Psr\Http\Message\RequestInterface
signRequest (
Psr\Http\Message\RequestInterface
$request,
Aws\Credentials\CredentialsInterface
$credentials,
$signingService = null
)
Signs the specified request with an AWS signing protocol by using the provided AWS account credentials and adding the required headers to the request.
Parameters
Psr\Http\Message\RequestInterface |
$request | Request to sign |
Aws\Credentials\CredentialsInterface |
$credentials | Signing credentials |
$signingService = null |
Returns
Psr\Http\Message\RequestInterface Returns the modified request. |
Overrides
Psr\Http\Message\RequestInterface
presign (
Psr\Http\Message\RequestInterface
$request,
Aws\Credentials\CredentialsInterface
$credentials,
integer|string|DateTimeInterface
$expires,
array
$options = []
)
Always add a x-amz-content-sha-256 for data integrity.
Parameters
Psr\Http\Message\RequestInterface |
$request | Request to sign |
Aws\Credentials\CredentialsInterface |
$credentials | Credentials used to sign |
integer|string|DateTimeInterface | $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. |
array | $options = [] |
Returns
Psr\Http\Message\RequestInterface |