COSSign constructor

COSSign({
  1. required int expiredTimeMs,
  2. required int startTimeMs,
  3. required String secretKey,
  4. required String secretId,
  5. required String method,
  6. required String uriPathname,
  7. Map<String, String>? params,
  8. Map<String, String>? headers,
})

Implementation

COSSign({
  required this.expiredTimeMs,
  required this.startTimeMs,
  required this.secretKey,
  required this.secretId,
  required this.method,
  required this.uriPathname,
  this.params,
  this.headers,
})  : assert(expiredTimeMs > startTimeMs),
      assert(secretKey.isNotEmpty),
      assert(secretId.isNotEmpty),
      assert(method.isNotEmpty),
      assert(uriPathname.isNotEmpty);