web/lib/Zend/Service/WindowsAzure/Credentials/SharedKeyLite.php
changeset 807 877f952ae2bd
parent 207 621fa6caec0c
child 1230 68c69c656a2c
equal deleted inserted replaced
805:5e7a0fedabdf 807:877f952ae2bd
    12  * obtain it through the world-wide-web, please send an email
    12  * obtain it through the world-wide-web, please send an email
    13  * to license@zend.com so we can send you a copy immediately.
    13  * to license@zend.com so we can send you a copy immediately.
    14  *
    14  *
    15  * @category   Zend
    15  * @category   Zend
    16  * @package    Zend_Service_WindowsAzure
    16  * @package    Zend_Service_WindowsAzure
    17  * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
    17  * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
    18  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    18  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    19  * @version    $Id: SharedKeyLite.php 22773 2010-08-03 07:18:27Z maartenba $
    19  * @version    $Id: SharedKeyLite.php 24593 2012-01-05 20:35:02Z matthew $
    20  */
    20  */
    21 
    21 
    22 /**
    22 /**
    23  * @see Zend_Service_WindowsAzure_Credentials_CredentialsAbstract
    23  * @see Zend_Service_WindowsAzure_Credentials_CredentialsAbstract
    24  */
    24  */
    25 require_once 'Zend/Service/WindowsAzure/Credentials/CredentialsAbstract.php';
    25 require_once 'Zend/Service/WindowsAzure/Credentials/CredentialsAbstract.php';
    26 
    26 
    27 /**
    27 /**
    28  * @see Zend_Service_WindowsAzure_Storage
       
    29  */
       
    30 require_once 'Zend/Service/WindowsAzure/Storage.php';
       
    31 
       
    32 /**
       
    33  * @see Zend_Service_WindowsAzure_Credentials_SharedKey
       
    34  */
       
    35 require_once 'Zend/Service/WindowsAzure/Credentials/SharedKey.php';
       
    36 
       
    37 /**
       
    38  * @see Zend_Service_WindowsAzure_Credentials_Exception
       
    39  */
       
    40 require_once 'Zend/Service/WindowsAzure/Credentials/Exception.php';
       
    41 
       
    42 /**
       
    43  * @category   Zend
    28  * @category   Zend
    44  * @package    Zend_Service_WindowsAzure
    29  * @package    Zend_Service_WindowsAzure
    45  * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
    30  * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
    46  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    31  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    47  */ 
    32  */ 
    48 class Zend_Service_WindowsAzure_Credentials_SharedKeyLite
    33 class Zend_Service_WindowsAzure_Credentials_SharedKeyLite
    49     extends Zend_Service_WindowsAzure_Credentials_CredentialsAbstract
    34     extends Zend_Service_WindowsAzure_Credentials_CredentialsAbstract
    50 {
    35 {
    87 		$requiredPermission = Zend_Service_WindowsAzure_Credentials_CredentialsAbstract::PERMISSION_READ,
    72 		$requiredPermission = Zend_Service_WindowsAzure_Credentials_CredentialsAbstract::PERMISSION_READ,
    88 		$rawData = null
    73 		$rawData = null
    89 	) {
    74 	) {
    90 		// Table storage?
    75 		// Table storage?
    91 		if (!$forTableStorage) {
    76 		if (!$forTableStorage) {
       
    77 			require_once 'Zend/Service/WindowsAzure/Credentials/Exception.php';
    92 			throw new Zend_Service_WindowsAzure_Credentials_Exception('The Windows Azure SDK for PHP does not support SharedKeyLite authentication on blob or queue storage. Use SharedKey authentication instead.');
    78 			throw new Zend_Service_WindowsAzure_Credentials_Exception('The Windows Azure SDK for PHP does not support SharedKeyLite authentication on blob or queue storage. Use SharedKey authentication instead.');
    93 		}
    79 		}
    94 		
    80 		
    95 		// Determine path
    81 		// Determine path
    96 		if ($this->_usePathStyleUri) {
    82 		if ($this->_usePathStyleUri) {