Authentication.php 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <?php
  2. /**
  3. * Zend Framework
  4. *
  5. * LICENSE
  6. *
  7. * This source file is subject to the new BSD license that is bundled
  8. * with this package in the file LICENSE.txt.
  9. * It is also available through the world-wide-web at this URL:
  10. * http://framework.zend.com/license/new-bsd
  11. * If you did not receive a copy of the license and are unable to
  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.
  14. *
  15. * @category Zend
  16. * @package Zend_Service_Amazon
  17. * @subpackage Authentication
  18. * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
  19. * @license http://framework.zend.com/license/new-bsd New BSD License
  20. */
  21. /**
  22. * @category Zend
  23. * @package Zend_Service_Amazon
  24. * @subpackage Authentication
  25. * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
  26. * @license http://framework.zend.com/license/new-bsd New BSD License
  27. */
  28. abstract class Zend_Service_Amazon_Authentication
  29. {
  30. protected $_accessKey;
  31. protected $_secretKey;
  32. protected $_apiVersion;
  33. /**
  34. * Constructor
  35. *
  36. * @param string $accessKey
  37. * @param string $secretKey
  38. * @param string $apiVersion
  39. * @return void
  40. */
  41. public function __construct($accessKey, $secretKey, $apiVersion)
  42. {
  43. $this->setAccessKey($accessKey);
  44. $this->setSecretKey($secretKey);
  45. $this->setApiVersion($apiVersion);
  46. }
  47. /**
  48. * Set access key
  49. *
  50. * @param string $accessKey
  51. * @return void
  52. */
  53. public function setAccessKey($accessKey)
  54. {
  55. $this->_accessKey = $accessKey;
  56. }
  57. /**
  58. * Set secret key
  59. *
  60. * @param string $secretKey
  61. * @return void
  62. */
  63. public function setSecretKey($secretKey)
  64. {
  65. $this->_secretKey = $secretKey;
  66. }
  67. /**
  68. * Set API version
  69. *
  70. * @param string $apiVersion
  71. * @return void
  72. */
  73. public function setApiVersion($apiVersion)
  74. {
  75. $this->_apiVersion = $apiVersion;
  76. }
  77. }