const.go (1481B)
1 package v4 2 3 // Signature Version 4 (SigV4) Constants 4 const ( 5 // EmptyStringSHA256 is the hex encoded sha256 value of an empty string 6 EmptyStringSHA256 = `e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855` 7 8 // UnsignedPayload indicates that the request payload body is unsigned 9 UnsignedPayload = "UNSIGNED-PAYLOAD" 10 11 // AmzAlgorithmKey indicates the signing algorithm 12 AmzAlgorithmKey = "X-Amz-Algorithm" 13 14 // AmzSecurityTokenKey indicates the security token to be used with temporary credentials 15 AmzSecurityTokenKey = "X-Amz-Security-Token" 16 17 // AmzDateKey is the UTC timestamp for the request in the format YYYYMMDD'T'HHMMSS'Z' 18 AmzDateKey = "X-Amz-Date" 19 20 // AmzCredentialKey is the access key ID and credential scope 21 AmzCredentialKey = "X-Amz-Credential" 22 23 // AmzSignedHeadersKey is the set of headers signed for the request 24 AmzSignedHeadersKey = "X-Amz-SignedHeaders" 25 26 // AmzSignatureKey is the query parameter to store the SigV4 signature 27 AmzSignatureKey = "X-Amz-Signature" 28 29 // TimeFormat is the time format to be used in the X-Amz-Date header or query parameter 30 TimeFormat = "20060102T150405Z" 31 32 // ShortTimeFormat is the shorten time format used in the credential scope 33 ShortTimeFormat = "20060102" 34 35 // ContentSHAKey is the SHA256 of request body 36 ContentSHAKey = "X-Amz-Content-Sha256" 37 38 // StreamingEventsPayload indicates that the request payload body is a signed event stream. 39 StreamingEventsPayload = "STREAMING-AWS4-HMAC-SHA256-EVENTS" 40 )