category Zend
package Zend_Service_Amazon
subpackage Authentication
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License
inherited_from \Zend_Service_Amazon_Authentication

 Methods

Constructor

__construct(string $accessKey, string $secretKey, string $apiVersion) : void
Inherited

Parameters

$accessKey

string

$secretKey

string

$apiVersion

string

Generate the required attributes for the signature

generateSignature(string $url, array $parameters) : string

Parameters

$url

string

$parameters

array

Returns

string

Set access key

setAccessKey(string $accessKey) : void
Inherited

Parameters

$accessKey

string

Set API version

setApiVersion(string $apiVersion) : void
Inherited

Parameters

$apiVersion

string

Set secret key

setSecretKey(string $secretKey) : void
Inherited

Parameters

$secretKey

string

Computes the RFC 2104-compliant HMAC signature for request parameters

_signParameters($url, array $paramaters) : string

This implements the Amazon Web Services signature, as per the following specification:

  1. Sort all request parameters (including SignatureVersion and excluding Signature, the value of which is being created), ignoring case.

  2. Iterate over the sorted list and append the parameter name (in its original case) and then its value. Do not URL-encode the parameter values before constructing this string. Do not use any separator characters when appending strings.

Parameters

$url

$paramaters

Returns

stringthe signed data.

 Properties

 

$_accessKey

$_accessKey 

Default

 

$_apiVersion

$_apiVersion 

Default

 

$_secretKey

$_secretKey 

Default

 

Signature Encoding Method

$_signatureMethod 

Default

'HmacSHA256'
 

Signature Version

$_signatureVersion 

Default

'1'