Sigv4 class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
Static Methods
-
Builds the
Authorization
headers
-
Builds a canonical header string from the given
headers
-
buildCanonicalQueryString(Map<String, dynamic>? query)
→ String
-
Builds a canonical query string from the given
query
parameters
-
buildCanonicalRequest(String? method, String path, Map<String, dynamic>? query, String payload)
→ String
-
Builds a canonical string containing a complete request
-
Builds a signed canonical header string from the given
headers
-
buildCanonicalUri(String uri)
→ String
-
Encodes the given string to a canonical URI
-
buildCredentialScope(String datetime, String region, String service)
→ String
-
Builds the required credential scope
-
buildStringToSign(String datetime, String credentialScope, String hashedCanonicalRequest)
→ String
-
Builds the complete canonical string to sign
-
calculateSignature(List<int> signingKey, String stringToSign)
→ String
-
Builds a Hex-encoded signature with the given
signingKey
and stringToSign
-
calculateSigningKey(String secretKey, String datetime, String region, String service)
→ List<int>
-
Builds the key to use for signing
-
generateDatetime()
→ String
-
Generates a date string compliant with the
AWS Signature V4
standard
-
hash(List<int> value)
→ List<int>
-
Creates a SHA256 hash from the given
value
byte array
override
-
hashPayload(String payload)
→ String
-
Hex-encodes a SHA256 hash of the given payload string,
payload
-
hexEncode(List<int> value)
→ String
-
Encodes the given
value
byte array with the Hex Codec
-
sign(List<int> key, String message)
→ List<int>
-
Signs the given
message
with the given key
using HMAC