category | Zend |
---|---|
package | Zend_Service_WindowsAzure |
copyright | Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
license | New BSD License |
inherited_from | \Zend_Service_WindowsAzure_Credentials_CredentialsAbstract |
__construct(string $accountName= \Zend_Service_WindowsAzure_Credentials_CredentialsAbstract::DEVSTORE_ACCOUNT
, string $accountKey= \Zend_Service_WindowsAzure_Credentials_CredentialsAbstract::DEVSTORE_KEY
, boolean $usePathStyleUri= false
, array $permissionSet= array()
)
inherited_from | \Zend_Service_WindowsAzure_Credentials_CredentialsAbstract::__construct() |
---|
string
Account name for Windows Azure
string
Account key for Windows Azure
boolean
Use path-style URI's
array
Permission set
__construct(string $accountName= \Zend_Service_WindowsAzure_Credentials_CredentialsAbstract::DEVSTORE_ACCOUNT
, string $accountKey= \Zend_Service_WindowsAzure_Credentials_CredentialsAbstract::DEVSTORE_KEY
, boolean $usePathStyleUri= false
)
string
Account name for Windows Azure
string
Account key for Windows Azure
boolean
Use path-style URI's
createSignature(string $path= '/'
, string $resource= 'b'
, string $permissions= 'r'
, string $start= ''
, string $expiry= ''
, string $identifier= ''
) : string
string
Path for the request
string
Signed resource - container (c) - blob (b)
string
Signed permissions - read (r), write (w), delete (d) and list (l)
string
The time at which the Shared Access Signature becomes valid.
string
The time at which the Shared Access Signature becomes invalid.
string
Signed identifier
string
createSignedQueryString(string $path= '/'
, string $queryString= ''
, string $resource= 'b'
, string $permissions= 'r'
, string $start= ''
, string $expiry= ''
, string $identifier= ''
) : string
string
Path for the request
string
Query string for the request
string
Signed resource - container (c) - blob (b)
string
Signed permissions - read (r), write (w), delete (d) and list (l)
string
The time at which the Shared Access Signature becomes valid.
string
The time at which the Shared Access Signature becomes invalid.
string
Signed identifier
string
getPermissionSet() : array
array
setAccountName(string $value = \Zend_Service_WindowsAzure_Credentials_CredentialsAbstract::DEVSTORE_ACCOUNT
) : \Zend_Service_WindowsAzure_Credentials_CredentialsAbstract
string
\Zend_Service_WindowsAzure_Credentials_CredentialsAbstract
setAccountkey(string $value = \Zend_Service_WindowsAzure_Credentials_CredentialsAbstract::DEVSTORE_KEY
) : \Zend_Service_WindowsAzure_Credentials_CredentialsAbstract
string
\Zend_Service_WindowsAzure_Credentials_CredentialsAbstract
setPermissionSet(array $value = array()
) : void
Warning: fine-grained permissions should be added prior to coarse-grained permissions. For example: first add blob permissions, end with container-wide permissions.
Warning: the signed access signature URL must match the account name of the Zend_Service_WindowsAzure_Credentials_Zend_Service_WindowsAzure_Credentials_SharedAccessSignature instance
array
Permission set
setUsePathStyleUri(boolean $value = false
) : \Zend_Service_WindowsAzure_Credentials_CredentialsAbstract
boolean
\Zend_Service_WindowsAzure_Credentials_CredentialsAbstract
signRequestHeaders(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
inherited_from | \Zend_Service_WindowsAzure_Credentials_CredentialsAbstract::signRequestHeaders() |
---|
string
HTTP verb the request will use
string
Path for the request
string
Query string for the request
array
x-ms headers to add
boolean
Is the request for table storage?
string
Resource type
string
Required permission
mixed
Raw post data
array
Array of headerssignRequestHeaders(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
string
HTTP verb the request will use
string
Path for the request
string
Query string for the request
array
x-ms headers to add
boolean
Is the request for table storage?
string
Resource type
string
Required permission
mixed
Raw post data
array
Array of headerssignRequestUrl(string $requestUrl= ''
, string $resourceType= \Zend_Service_WindowsAzure_Storage::RESOURCE_UNKNOWN
, string $requiredPermission= \Zend_Service_WindowsAzure_Credentials_CredentialsAbstract::PERMISSION_READ
) : string
inherited_from | \Zend_Service_WindowsAzure_Credentials_CredentialsAbstract::signRequestUrl() |
---|
string
Request URL
string
Resource type
string
Required permission
string
Signed request URLsignRequestUrl(string $requestUrl= ''
, string $resourceType= \Zend_Service_WindowsAzure_Storage::RESOURCE_UNKNOWN
, string $requiredPermission= \Zend_Service_WindowsAzure_Credentials_CredentialsAbstract::PERMISSION_READ
) : string
string
Request URL
string
Resource type
string
Required permission
string
Signed request URL_issetOr(array $array, mixed $key, mixed $valueIfNotSet) : mixed
array
mixed
mixed
mixed
_makeArrayOfQueryString(string $value) : array
string
Query string
array
Array of key/value pairs_prepareQueryStringForSigning(string $value) : string
string
Original query string
string
Query string for signing$_accountKey : string
''
$_accountName : string
''
$_usePathStyleUri : boolean
false
DEVSTORE_ACCOUNT = "devstoreaccount1"
DEVSTORE_KEY = "Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw=="
PERMISSION_DELETE = "d"
PERMISSION_LIST = "l"
PERMISSION_READ = "r"
PERMISSION_WRITE = "w"
PREFIX_METADATA = "x-ms-meta-"
PREFIX_PROPERTIES = "x-ms-prop-"
PREFIX_STORAGE_HEADER = "x-ms-"