COSSign class

Constructors

COSSign({required int expiredTimeMs, required int startTimeMs, required String secretKey, required String secretId, required String method, required String uriPathname, Map<String, String>? params, Map<String, String>? headers})

Properties

expiredTimeMs int
final
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>?
final
method String
final
params Map<String, String>?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secretId String
final
secretKey String
final
startTimeMs int
final
uriPathname String
final

Methods

getSignature() String
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

filterHeaders(Map<String, String> headers) → dynamic
generateHttpString({required String method, required String uriPathname, required String httpParameters, required String httpHeaders}) String
generateKeyTime(int startTimeMs, int expiredTimeMs) String
generateParamsListAndParameters(Map<String, String> params) → ({String paramList, String parameters})
generateSignature(String stringToSign, String signKey) → dynamic
generateSignKey(String keyTime, String secretKey) String
generateStringToSign(String keyTime, String httpString) String
HMACSha1(String msg, String key) String