using System; using System.Collections.Generic; using System.Text; namespace COSXML.Model.Tag { public sealed class PreSignatureStruct { /// /// cos 服务的appid /// public string appid; /// /// 存储桶名称 /// public string bucket; /// /// Bucket所属地域 /// public string region; /// /// 设置 host /// public string host; /// /// 对象键 /// public string key; /// /// true:https; false: http /// public bool isHttps; /// /// 签名中是否签入host /// public bool signHost = false; /// /// http request method : get , put , etc. /// public string httpMethod; /// /// 签名需要校验的url中查询参数 /// public Dictionary queryParameters; /// /// 签名需要校验的headers /// public Dictionary headers; /// /// 签名 sign的有效期,若 小于 0,则取keyTime. /// public long signDurationSecond; /// /// 签名 key的有效期,不设置 或 小于 0, 则取 QCloudCredential中的keyTime /// public long keyDurationSecond; } }