|
Moodle
2.2.1
http://www.collinsharper.com
|


Definition at line 43 of file SharedAccessSignature.php.
| __construct | ( | $ | accountName = Zend_Service_WindowsAzure_Credentials_CredentialsAbstract::DEVSTORE_ACCOUNT, |
| $ | accountKey = Zend_Service_WindowsAzure_Credentials_CredentialsAbstract::DEVSTORE_KEY, |
||
| $ | usePathStyleUri = false, |
||
| $ | permissionSet = array() |
||
| ) |
Creates a new Zend_Service_WindowsAzure_Credentials_SharedAccessSignature instance
| string | $accountName | Account name for Windows Azure |
| string | $accountKey | Account key for Windows Azure |
| boolean | $usePathStyleUri | Use path-style URI's |
| array | $permissionSet | Permission set |
Definition at line 61 of file SharedAccessSignature.php.
| createSignature | ( | $ | path = '/', |
| $ | resource = 'b', |
||
| $ | permissions = 'r', |
||
| $ | start = '', |
||
| $ | expiry = '', |
||
| $ | identifier = '' |
||
| ) |
Create signature
| string | $path | Path for the request |
| string | $resource | Signed resource - container (c) - blob (b) |
| string | $permissions | Signed permissions - read (r), write (w), delete (d) and list (l) |
| string | $start | The time at which the Shared Access Signature becomes valid. |
| string | $expiry | The time at which the Shared Access Signature becomes invalid. |
| string | $identifier | Signed identifier |
Definition at line 113 of file SharedAccessSignature.php.

| createSignedQueryString | ( | $ | path = '/', |
| $ | queryString = '', |
||
| $ | resource = 'b', |
||
| $ | permissions = 'r', |
||
| $ | start = '', |
||
| $ | expiry = '', |
||
| $ | identifier = '' |
||
| ) |
Create signed query string
| string | $path | Path for the request |
| string | $queryString | Query string for the request |
| string | $resource | Signed resource - container (c) - blob (b) |
| string | $permissions | Signed permissions - read (r), write (w), delete (d) and list (l) |
| string | $start | The time at which the Shared Access Signature becomes valid. |
| string | $expiry | The time at which the Shared Access Signature becomes invalid. |
| string | $identifier | Signed identifier |
Definition at line 164 of file SharedAccessSignature.php.

| getPermissionSet | ( | ) |
Get permission set
Definition at line 75 of file SharedAccessSignature.php.

| permissionMatchesRequest | ( | $ | permissionUrl = '', |
| $ | requestUrl = '', |
||
| $ | resourceType = Zend_Service_WindowsAzure_Storage::RESOURCE_UNKNOWN, |
||
| $ | requiredPermission = Zend_Service_WindowsAzure_Credentials_CredentialsAbstract::PERMISSION_READ |
||
| ) |
Permission matches request?
| string | $permissionUrl | Permission URL |
| string | $requestUrl | Request URL |
| string | $resourceType | Resource type |
| string | $requiredPermission | Required permission |
Definition at line 204 of file SharedAccessSignature.php.

| setPermissionSet | ( | $ | value = array() | ) |
Set permisison set
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 | $value | Permission set |
Definition at line 92 of file SharedAccessSignature.php.
| signRequestHeaders | ( | $ | httpVerb = Zend_Http_Client::GET, |
| $ | path = '/', |
||
| $ | queryString = '', |
||
| $ | headers = null, |
||
| $ | forTableStorage = false, |
||
| $ | resourceType = Zend_Service_WindowsAzure_Storage::RESOURCE_UNKNOWN, |
||
| $ | requiredPermission = Zend_Service_WindowsAzure_Credentials_CredentialsAbstract::PERMISSION_READ |
||
| ) |
Sign request with credentials
| string | $httpVerb | HTTP verb the request will use |
| string | $path | Path for the request |
| string | $queryString | Query string for the request |
| array | $headers | x-ms headers to add |
| boolean | $forTableStorage | Is the request for table storage? |
| string | $resourceType | Resource type |
| string | $requiredPermission | Required permission |
Reimplemented from Zend_Service_WindowsAzure_Credentials_CredentialsAbstract.
Definition at line 294 of file SharedAccessSignature.php.
| signRequestUrl | ( | $ | requestUrl = '', |
| $ | resourceType = Zend_Service_WindowsAzure_Storage::RESOURCE_UNKNOWN, |
||
| $ | requiredPermission = Zend_Service_WindowsAzure_Credentials_CredentialsAbstract::PERMISSION_READ |
||
| ) |
Sign request URL with credentials
| string | $requestUrl | Request URL |
| string | $resourceType | Resource type |
| string | $requiredPermission | Required permission |
Reimplemented from Zend_Service_WindowsAzure_Credentials_CredentialsAbstract.
Definition at line 254 of file SharedAccessSignature.php.

$_permissionSet = array() [protected] |
Definition at line 51 of file SharedAccessSignature.php.