Service/Amazon/Authentication/V1.php

Show: inherited
Table of Contents

Zend Framework

LICENSE

This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to [email protected] so we can send you a copy immediately.

Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Service_Amazon  
Subpackage
Authentication  

\Zend_Service_Amazon_Authentication_V1

Package: Zend\Service\Amazon\Authentication

Parent(s)
\Zend_Service_Amazon_Authentication
Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

Propertyprotected$_accessKey =
Details
Type
n/a
Inherited_from
\Zend_Service_Amazon_Authentication::$$_accessKey  
Propertyprotected$_apiVersion =
Details
Type
n/a
Inherited_from
\Zend_Service_Amazon_Authentication::$$_apiVersion  
Propertyprotected$_secretKey =
Details
Type
n/a
Inherited_from
\Zend_Service_Amazon_Authentication::$$_secretKey  
Propertyprotected$_signatureMethod = 'HmacSHA256'

Signature Encoding Method

Default value'HmacSHA256'Details
Type
n/a
Propertyprotected$_signatureVersion = '1'

Signature Version

Default value'1'Details
Type
n/a

Methods

methodpublic__construct(string $accessKey, string $secretKey, string $apiVersion) : void
inherited

Constructor

Inherited from: \Zend_Service_Amazon_Authentication::__construct()
Parameters
Name Type Description
$accessKey string
$secretKey string
$apiVersion string
methodprotected_signParameters( $url,  $paramaters) : string

Computes the RFC 2104-compliant HMAC signature for request parameters

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
Name Type Description
$url
$paramaters
Returns
Type Description
string the signed data.
methodpublicgenerateSignature(string $url, array $parameters) : string

Generate the required attributes for the signature

Parameters
Name Type Description
$url string
$parameters array
Returns
Type Description
string
methodpublicsetAccessKey(string $accessKey) : void
inherited

Set access key

Inherited from: \Zend_Service_Amazon_Authentication::setAccessKey()
Parameters
Name Type Description
$accessKey string
methodpublicsetApiVersion(string $apiVersion) : void
inherited

Set API version

Inherited from: \Zend_Service_Amazon_Authentication::setApiVersion()
Parameters
Name Type Description
$apiVersion string
methodpublicsetSecretKey(string $secretKey) : void
inherited

Set secret key

Inherited from: \Zend_Service_Amazon_Authentication::setSecretKey()
Parameters
Name Type Description
$secretKey string
Documentation was generated by phpDocumentor 2.0.0a8.