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

# Class CloudFrontSignature

Amazon CloudFront signature implementation

  Aws\Common\Signature\AbstractSignature implements Aws\Common\Signature\SignatureInterface
  Aws\CloudFront\CloudFrontSignature

Namespace: Aws\CloudFront
Link: http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/RESTAuthentication.html
Located at Aws/CloudFront/CloudFrontSignature.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` `signString ( string $string, Aws\Common\Credentials\CredentialsInterface $credentials )`

  Sign a signature string by applying SHA-1 HMAC hashing.

## 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 string`
`signString( string $string, `Aws\Common\Credentials\CredentialsInterface` $credentials )`

Sign a signature string by applying SHA-1 HMAC hashing.

#### Parameters

$string
  `string`
  $string The signature string to hash.
$credentials
  ``Aws\Common\Credentials\CredentialsInterface``
  $credentials Signing credentials.

#### Returns

`string`
The hashed signature string.

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

`createPresignedUrl()`, `getTimestamp()`

### Magic methods summary