getStringToSign a string based on selected query values.
(t time.Time, location, canonicalRequest, serviceType string)
| 199 | |
| 200 | // getStringToSign a string based on selected query values. |
| 201 | func getStringToSignV4(t time.Time, location, canonicalRequest, serviceType string) string { |
| 202 | stringToSign := signV4Algorithm + "\n" + t.Format(iso8601DateFormat) + "\n" |
| 203 | stringToSign = stringToSign + getScope(location, t, serviceType) + "\n" |
| 204 | stringToSign += hex.EncodeToString(sum256([]byte(canonicalRequest))) |
| 205 | return stringToSign |
| 206 | } |
| 207 | |
| 208 | // PreSignV4 presign the request, in accordance with |
| 209 | // http://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html. |
no test coverage detected