NOTE: For Version 3 of the AWS SDK for PHP, please see the V3 User Guide and V3 API Reference.

# Class SignatureV2

Implementation of Signature Version 2

  Aws\Common\Signature\AbstractSignature implements Aws\Common\Signature\SignatureInterface
  Aws\Common\Signature\SignatureV2

Namespace: Aws\Common\Signature
Link: http://aws.amazon.com/articles/1928
Located at Aws/Common/Signature/SignatureV2.php

## Methods summary

- `public` `signRequest ( Guzzle\Http\Message\RequestInterface $request, Aws\Common\Credentials\CredentialsInterface $credentials )`

  Signs the specified request with an AWS signing protocol by using the provided AWS account credentials and adding the required headers to the request.

- `public` `addParameter ( Guzzle\Http\Message\RequestInterface $request, string $key, string $value )`

  Add a parameter key and value to the request according to type

## Methods detail

# `public`
`signRequest( `Guzzle\Http\Message\RequestInterface` $request, `Aws\Common\Credentials\CredentialsInterface` $credentials )`

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

$request
  ``Guzzle\Http\Message\RequestInterface``
  $request Request to add a signature to
$credentials
  ``Aws\Common\Credentials\CredentialsInterface``
  $credentials Signing credentials

# `public`
`addParameter( `Guzzle\Http\Message\RequestInterface` $request, string $key, string $value )`

Add a parameter key and value to the request according to type

#### Parameters

$request
  ``Guzzle\Http\Message\RequestInterface``
  $request The request
$key
  `string`
  $key The name of the parameter
$value
  `string`
  $value The value of the parameter

### Methods inherited from Aws\Common\Signature\AbstractSignature

`createPresignedUrl()`, `getTimestamp()`

### Magic methods summary