PreSignatureStruct.cs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace COSXML.Model.Tag
  5. {
  6. public sealed class PreSignatureStruct
  7. {
  8. /// <summary>
  9. /// cos 服务的appid
  10. /// </summary>
  11. public string appid;
  12. /// <summary>
  13. /// 存储桶名称
  14. /// </summary>
  15. public string bucket;
  16. /// <summary>
  17. /// Bucket所属地域
  18. /// </summary>
  19. public string region;
  20. /// <summary>
  21. /// 设置 host
  22. /// </summary>
  23. public string host;
  24. /// <summary>
  25. /// 对象键
  26. /// </summary>
  27. public string key;
  28. /// <summary>
  29. /// true:https; false: http
  30. /// </summary>
  31. public bool isHttps;
  32. /// <summary>
  33. /// 签名中是否签入host
  34. /// </summary>
  35. public bool signHost = false;
  36. /// <summary>
  37. /// http request method : get , put , etc.
  38. /// </summary>
  39. public string httpMethod;
  40. /// <summary>
  41. /// 签名需要校验的url中查询参数
  42. /// </summary>
  43. public Dictionary<string, string> queryParameters;
  44. /// <summary>
  45. /// 签名需要校验的headers
  46. /// </summary>
  47. public Dictionary<string, string> headers;
  48. /// <summary>
  49. /// 签名 sign的有效期,若 小于 0,则取keyTime.
  50. /// </summary>
  51. public long signDurationSecond;
  52. /// <summary>
  53. /// 签名 key的有效期,不设置 或 小于 0, 则取 QCloudCredential中的keyTime
  54. /// </summary>
  55. public long keyDurationSecond;
  56. }
  57. }