StsBase.php 564 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. namespace OSS\Tests;
  3. class StsBase
  4. {
  5. protected $SignatureVersion = "1.0";
  6. protected $Version = "2015-04-01";
  7. protected $Timestamp;
  8. protected $SignatureMethod = "HMAC-SHA1";
  9. protected $Format = "JSON";
  10. protected $AccessKeyId;
  11. protected $SignatureNonce;
  12. private $Signature;
  13. public function __set($name, $value)
  14. {
  15. $this->$name = $value;
  16. }
  17. public function __construct()
  18. {
  19. $this->Timestamp = gmdate('Y-m-d\TH:i:s\Z');
  20. $this->SignatureNonce = time().rand(10000,99999);
  21. }
  22. }