Service/WindowsAzure/Credentials/SharedKeyLite.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_WindowsAzure  
Version
$Id: SharedKeyLite.php 24593 2012-01-05 20:35:02Z matthew $  

\Zend_Service_WindowsAzure_Credentials_SharedKeyLite

Package: Zend\Service\WindowsAzure

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

Constants

Constant  DEVSTORE_ACCOUNT = "devstoreaccount1"
inherited

Development storage account and key

Inherited from: \Zend_Service_WindowsAzure_Credentials_CredentialsAbstract::DEVSTORE_ACCOUNT
Constant  DEVSTORE_KEY = "Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw=="
Constant  PREFIX_PROPERTIES = "x-ms-prop-"

Properties

Propertyprotectedstring $_accountKey = ''
inherited

Account key for Windows Azure

Inherited from: \Zend_Service_WindowsAzure_Credentials_CredentialsAbstract::$$_accountKey
Default value''Details
Type
string
Inherited_from
\Zend_Service_WindowsAzure_Credentials_CredentialsAbstract::$$_accountKey  
Propertyprotectedstring $_accountName = ''
inherited

Account name for Windows Azure

Inherited from: \Zend_Service_WindowsAzure_Credentials_CredentialsAbstract::$$_accountName
Default value''Details
Type
string
Inherited_from
\Zend_Service_WindowsAzure_Credentials_CredentialsAbstract::$$_accountName  
Propertyprotectedboolean $_usePathStyleUri = false
Default valuefalseDetails
Type
boolean
Inherited_from
\Zend_Service_WindowsAzure_Credentials_CredentialsAbstract::$$_usePathStyleUri  

Methods

methodpublic__construct(string $accountName = \Zend_Service_WindowsAzure_Credentials_CredentialsAbstract::DEVSTORE_ACCOUNT, string $accountKey = \Zend_Service_WindowsAzure_Credentials_CredentialsAbstract::DEVSTORE_KEY, boolean $usePathStyleUri = false) : void
inherited

Creates a new Zend_Service_WindowsAzure_Credentials_CredentialsAbstract instance

Inherited from: \Zend_Service_WindowsAzure_Credentials_CredentialsAbstract::__construct()
Parameters
Name Type Description
$accountName string

Account name for Windows Azure

$accountKey string

Account key for Windows Azure

$usePathStyleUri boolean

Use path-style URI's

methodprotected_issetOr(array $array, mixed $key, mixed $valueIfNotSet) : mixed
inherited

Returns an array value if the key is set, otherwide returns $valueIfNotSet

Inherited from: \Zend_Service_WindowsAzure_Credentials_CredentialsAbstract::_issetOr()
Parameters
Name Type Description
$array array
$key mixed
$valueIfNotSet mixed
Returns
Type Description
mixed
methodprotected_makeArrayOfQueryString(string $value) : array
Parameters
Name Type Description
$value string

Query string

Returns
Type Description
array Array of key/value pairs
methodprotected_prepareQueryStringForSigning(string $value) : string

Prepare query string for signing

Parameters
Name Type Description
$value string

Original query string

Returns
Type Description
string Query string for signing
methodpublicsetAccountName(string $value = \Zend_Service_WindowsAzure_Credentials_CredentialsAbstract::DEVSTORE_ACCOUNT) : \Zend_Service_WindowsAzure_Credentials_CredentialsAbstract
inherited

Set account name for Windows Azure

Inherited from: \Zend_Service_WindowsAzure_Credentials_CredentialsAbstract::setAccountName()
Parameters
Name Type Description
$value string
Returns
Type Description
\Zend_Service_WindowsAzure_Credentials_CredentialsAbstract
methodpublicsetAccountkey(string $value = \Zend_Service_WindowsAzure_Credentials_CredentialsAbstract::DEVSTORE_KEY) : \Zend_Service_WindowsAzure_Credentials_CredentialsAbstract
inherited

Set account key for Windows Azure

Inherited from: \Zend_Service_WindowsAzure_Credentials_CredentialsAbstract::setAccountkey()
Parameters
Name Type Description
$value string
Returns
Type Description
\Zend_Service_WindowsAzure_Credentials_CredentialsAbstract
methodpublicsetUsePathStyleUri(boolean $value = false) : \Zend_Service_WindowsAzure_Credentials_CredentialsAbstract
Parameters
Name Type Description
$value boolean
Returns
Type Description
\Zend_Service_WindowsAzure_Credentials_CredentialsAbstract
methodpublicsignRequestHeaders(string $httpVerb = \Zend_Http_Client::GET, string $path = '/', string $queryString = '', array $headers = null, boolean $forTableStorage = false, string $resourceType = \Zend_Service_WindowsAzure_Storage::RESOURCE_UNKNOWN, string $requiredPermission = \Zend_Service_WindowsAzure_Credentials_CredentialsAbstract::PERMISSION_READ, mixed $rawData = null) : array

Sign request headers with credentials

Parameters
Name Type Description
$httpVerb string

HTTP verb the request will use

$path string

Path for the request

$queryString string

Query string for the request

$headers array

x-ms headers to add

$forTableStorage boolean

Is the request for table storage?

$resourceType string

Resource type

$requiredPermission string

Required permission

$rawData mixed

Raw post data

Returns
Type Description
array Array of headers
methodpublicsignRequestUrl(string $requestUrl = '', string $resourceType = \Zend_Service_WindowsAzure_Storage::RESOURCE_UNKNOWN, string $requiredPermission = \Zend_Service_WindowsAzure_Credentials_CredentialsAbstract::PERMISSION_READ) : string

Sign request URL with credentials

Parameters
Name Type Description
$requestUrl string

Request URL

$resourceType string

Resource type

$requiredPermission string

Required permission

Returns
Type Description
string Signed request URL
Documentation was generated by phpDocumentor 2.0.0a8.